com.jcraft.jsch

Class ProxyHTTP

Implemented Interfaces:
Proxy

public class ProxyHTTP
extends java.lang.Object
implements Proxy

Constructor Summary

ProxyHTTP(String proxy_host)
ProxyHTTP(String proxy_host, int proxy_port)

Method Summary

void
close()
void
connect(Session session, String host, int port)
static int
getDefaultPort()
InputStream
getInputStream()
OutputStream
getOutputStream()
void
setUserPasswd(String user, String passwd)

Constructor Details

ProxyHTTP

public ProxyHTTP(String proxy_host)

ProxyHTTP

public ProxyHTTP(String proxy_host,
                 int proxy_port)

Method Details

close

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

connect

public void connect(Session session,
                    String host,
                    int port)
            throws JSchException
Specified by:
connect in interface Proxy

getDefaultPort

public static int getDefaultPort()

getInputStream

public InputStream getInputStream()
Specified by:
getInputStream in interface Proxy

getOutputStream

public OutputStream getOutputStream()
Specified by:
getOutputStream in interface Proxy

setUserPasswd

public void setUserPasswd(String user,
                          String passwd)