|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.net.Socket
com.sshtools.net.HttpProxyTransport
Provides an SshTransport
implementation that can route the connection
through a HTTP proxy.
To connect the transport simply call the connectViaProxy(String, int, String, int, String, String, String)
method. You can pass the name of your application as the user agent and if no authentication
is required simply pass ""
Method Summary | |
static HttpProxyTransport |
connectViaProxy(java.lang.String host,
int port,
java.lang.String proxyHost,
int proxyPort,
java.lang.String username,
java.lang.String password,
java.lang.String userAgent)
Connect the socket to a HTTP proxy and request forwarding to our remote host. |
SshTransport |
duplicate()
Create a new copy of this transport and connect to the same host:port combination. |
java.lang.String |
getHost()
Get the name of the connected host. |
java.lang.String |
toString()
|
Methods inherited from class java.net.Socket |
bind, close, connect, connect, getChannel, getInetAddress, getInputStream, getKeepAlive, getLocalAddress, getLocalPort, getLocalSocketAddress, getOOBInline, getOutputStream, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setKeepAlive, setOOBInline, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSocketImplFactory, setSoLinger, setSoTimeout, setTcpNoDelay, setTrafficClass, shutdownInput, shutdownOutput |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.maverick.ssh.SshTransport |
getPort |
Methods inherited from interface com.maverick.ssh.SshIO |
close, getInputStream, getOutputStream |
Method Detail |
public static HttpProxyTransport connectViaProxy(java.lang.String host, int port, java.lang.String proxyHost, int proxyPort, java.lang.String username, java.lang.String password, java.lang.String userAgent) throws java.io.IOException, java.net.UnknownHostException
host
- port
- proxyHost
- proxyPort
- username
- password
- userAgent
-
java.io.IOException
java.net.UnknownHostException
public java.lang.String toString()
public java.lang.String getHost()
SshTransport
getHost
in interface SshTransport
public SshTransport duplicate() throws java.io.IOException
SshTransport
duplicate
in interface SshTransport
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |