com.jcraft.jsch
Class ProxyHTTP

java.lang.Object
  extended by com.jcraft.jsch.ProxyHTTP
All Implemented Interfaces:
Proxy

public class ProxyHTTP
extends java.lang.Object
implements Proxy


Constructor Summary
ProxyHTTP(java.lang.String proxy_host)
           
ProxyHTTP(java.lang.String proxy_host, int proxy_port)
           
 
Method Summary
 void close()
           
 void connect(SocketFactory socket_factory, java.lang.String host, int port, int timeout)
           
static int getDefaultPort()
           
 java.io.InputStream getInputStream()
           
 java.io.OutputStream getOutputStream()
           
 java.net.Socket getSocket()
           
 void setUserPasswd(java.lang.String user, java.lang.String passwd)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyHTTP

public ProxyHTTP(java.lang.String proxy_host)

ProxyHTTP

public ProxyHTTP(java.lang.String proxy_host,
                 int proxy_port)
Method Detail

setUserPasswd

public void setUserPasswd(java.lang.String user,
                          java.lang.String passwd)

connect

public void connect(SocketFactory socket_factory,
                    java.lang.String host,
                    int port,
                    int timeout)
             throws JSchException
Specified by:
connect in interface Proxy
Throws:
JSchException

getInputStream

public java.io.InputStream getInputStream()
Specified by:
getInputStream in interface Proxy

getOutputStream

public java.io.OutputStream getOutputStream()
Specified by:
getOutputStream in interface Proxy

getSocket

public java.net.Socket getSocket()
Specified by:
getSocket in interface Proxy

close

public void close()
Specified by:
close in interface Proxy

getDefaultPort

public static int getDefaultPort()