|
Ganymed SSH-2 for Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.ethz.ssh2.HTTPProxyData
public class HTTPProxyData
A HTTPProxyData
object is used to specify the needed connection data
to connect through a HTTP proxy.
Connection.setProxyData(ProxyData)
Field Summary | |
---|---|
java.lang.String |
proxyHost
|
java.lang.String |
proxyPass
|
int |
proxyPort
|
java.lang.String |
proxyUser
|
java.lang.String[] |
requestHeaderLines
|
Constructor Summary | |
---|---|
HTTPProxyData(java.lang.String proxyHost,
int proxyPort)
Same as calling HTTPProxyData(proxyHost, proxyPort, |
|
HTTPProxyData(java.lang.String proxyHost,
int proxyPort,
java.lang.String proxyUser,
java.lang.String proxyPass)
Same as calling HTTPProxyData(proxyHost, proxyPort, |
|
HTTPProxyData(java.lang.String proxyHost,
int proxyPort,
java.lang.String proxyUser,
java.lang.String proxyPass,
java.lang.String[] requestHeaderLines)
Connection data for a HTTP proxy. |
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final java.lang.String proxyHost
public final int proxyPort
public final java.lang.String proxyUser
public final java.lang.String proxyPass
public final java.lang.String[] requestHeaderLines
Constructor Detail |
---|
public HTTPProxyData(java.lang.String proxyHost, int proxyPort)
HTTPProxyData(proxyHost, proxyPort, null
, null
)
proxyHost
- Proxy hostname.proxyPort
- Proxy port.public HTTPProxyData(java.lang.String proxyHost, int proxyPort, java.lang.String proxyUser, java.lang.String proxyPass)
HTTPProxyData(proxyHost, proxyPort, null
, null
, null
)
proxyHost
- Proxy hostname.proxyPort
- Proxy port.proxyUser
- Username for basic authentication (null
if no authentication is needed).proxyPass
- Password for basic authentication (null
if no authentication is needed).public HTTPProxyData(java.lang.String proxyHost, int proxyPort, java.lang.String proxyUser, java.lang.String proxyPass, java.lang.String[] requestHeaderLines)
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"});
proxyHost
- Proxy hostname.proxyPort
- Proxy port.proxyUser
- Username for basic authentication (null
if no authentication is needed).proxyPass
- Password for basic authentication (null
if no authentication is needed).requestHeaderLines
- An array with additional request header lines (without end-of-line markers)
that have to be sent to the server. May be null
.
|
Ganymed SSH-2 for Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |