| java.lang.Object ch.ethz.ssh2.HTTPProxyData
HTTPProxyData | public class HTTPProxyData implements ProxyData(Code) | | A HTTPProxyData object is used to specify the needed connection data
to connect through a HTTP proxy.
See Also: Connection.setProxyData(ProxyData) author: Christian Plattner, plattner@inf.ethz.ch version: $Id: HTTPProxyData.java,v 1.2 2006/08/02 12:05:00 cplattne Exp $ |
proxyPort | final public int proxyPort(Code) | | |
requestHeaderLines | final public String[] requestHeaderLines(Code) | | |
HTTPProxyData | public HTTPProxyData(String proxyHost, int proxyPort, String proxyUser, String proxyPass)(Code) | | Same as calling
HTTPProxyData.HTTPProxyData(String,int,String,String,String[]) HTTPProxyData(proxyHost, proxyPort, null , null , null ) Parameters: proxyHost - Proxy hostname. Parameters: proxyPort - Proxy port. Parameters: proxyUser - Username for basic authentication (null if no authentication is needed). Parameters: proxyPass - Password for basic authentication (null if no authentication is needed). |
HTTPProxyData | public HTTPProxyData(String proxyHost, int proxyPort, String proxyUser, String proxyPass, String[] requestHeaderLines)(Code) | | Connection data for a HTTP proxy. It is possible to specify a username and password
if the proxy requires basic authentication. Also, additional request header lines can
be specified (e.g., "User-Agent: CERN-LineMode/2.15 libwww/2.17b3").
Please note: if you want to use basic authentication, then both proxyUser
and proxyPass must be non-null.
Here is an example:
new HTTPProxyData("192.168.1.1", "3128", "proxyuser", "secret", new String[] {"User-Agent: GanymedBasedClient/1.0", "X-My-Proxy-Option: something"});
Parameters: proxyHost - Proxy hostname. Parameters: proxyPort - Proxy port. Parameters: proxyUser - Username for basic authentication (null if no authentication is needed). Parameters: proxyPass - Password for basic authentication (null if no authentication is needed). Parameters: requestHeaderLines - An array with additional request header lines (without end-of-line markers)that have to be sent to the server. May be null . |
|
|