Package com.jcraft.jsch
Class ProxyHTTP
java.lang.Object
com.jcraft.jsch.ProxyHTTP
- All Implemented Interfaces:
Proxy
public class ProxyHTTP extends java.lang.Object implements Proxy
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description voidclose()voidconnect(SocketFactory socket_factory, java.lang.String host, int port, int timeout)static intgetDefaultPort()java.io.InputStreamgetInputStream()java.io.OutputStreamgetOutputStream()java.net.SocketgetSocket()voidsetUserPasswd(java.lang.String user, java.lang.String passwd)
-
Constructor Details
-
Method Details
-
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:
connectin interfaceProxy- Throws:
JSchException
-
getInputStream
public java.io.InputStream getInputStream()- Specified by:
getInputStreamin interfaceProxy
-
getOutputStream
public java.io.OutputStream getOutputStream()- Specified by:
getOutputStreamin interfaceProxy
-
getSocket
public java.net.Socket getSocket() -
close
public void close() -
getDefaultPort
public static int getDefaultPort()
-