com.sshtools.net
Class HttpProxyTransportWrapper

java.lang.Object
  extended bycom.sshtools.net.SocketWrapper
      extended bycom.sshtools.net.HttpProxyTransportWrapper
All Implemented Interfaces:
SocketTimeoutSupport, SshIO, SshTransport

public class HttpProxyTransportWrapper
extends SocketWrapper
implements SshTransport


Field Summary
 
Fields inherited from class com.sshtools.net.SocketWrapper
socket
 
Method Summary
static HttpProxyTransportWrapper 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 com.sshtools.net.SocketWrapper
close, getInputStream, getOutputStream, getPort, getSoTimeout, setSoTimeout
 
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

connectViaProxy

public static HttpProxyTransportWrapper 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
Connect the socket to a HTTP proxy and request forwarding to our remote host.

Parameters:
host -
port -
proxyHost -
proxyPort -
username -
password -
userAgent -
Returns:
Throws:
java.io.IOException
java.net.UnknownHostException

toString

public java.lang.String toString()

getHost

public java.lang.String getHost()
Description copied from interface: SshTransport
Get the name of the connected host.

Specified by:
getHost in interface SshTransport
Overrides:
getHost in class SocketWrapper

duplicate

public SshTransport duplicate()
                       throws java.io.IOException
Description copied from interface: SshTransport
Create a new copy of this transport and connect to the same host:port combination. This is used by the SshClient to duplicate a client connection.

Specified by:
duplicate in interface SshTransport
Overrides:
duplicate in class SocketWrapper
Throws:
java.io.IOException


Copyright © 2003 3SP LTD. All Rights Reserved.