com.sshtools.j2ssh.net

Class HttpProxySocketProvider

Implemented Interfaces:
TransportProvider

public class HttpProxySocketProvider
extends Socket
implements TransportProvider

Version:
$Revision: 1.13 $
Author:
$author$

Method Summary

static HttpProxySocketProvider
connectViaProxy(String host, int port, String proxyHost, int proxyPort, String username, String password, String userAgent)
static HttpProxySocketProvider
connectViaProxy(String host, int port, String proxyHost, int proxyPort, String protocol, String username, String password, String userAgent)
String
getProviderDetail()
HttpHeader
getResponseHeader()
String
toString()

Method Details

connectViaProxy

public static HttpProxySocketProvider connectViaProxy(String host,
                                                      int port,
                                                      String proxyHost,
                                                      int proxyPort,
                                                      String username,
                                                      String password,
                                                      String userAgent)
            throws IOException,
                   UnknownHostException
Parameters:
host -
port -
proxyHost -
proxyPort -
username -
password -
userAgent -
Returns:

connectViaProxy

public static HttpProxySocketProvider connectViaProxy(String host,
                                                      int port,
                                                      String proxyHost,
                                                      int proxyPort,
                                                      String protocol,
                                                      String username,
                                                      String password,
                                                      String userAgent)
            throws IOException,
                   UnknownHostException
Parameters:
host -
port -
proxyHost -
proxyPort -
protocol -
username -
password -
userAgent -
Returns:

getProviderDetail

public String getProviderDetail()
Specified by:
getProviderDetail in interface TransportProvider
Returns:

getResponseHeader

public HttpHeader getResponseHeader()
Returns:

toString

public String toString()
Returns:

Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.