|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.ibm.wbi.protocol.http.sublayer.FirewallInfo
FirewallInfo is used to passed proxy/socks information along with an HTTP transaction. It can be set on the transaction's DocumentInfo.
| Field Summary | |
protected java.net.InetAddress |
proxyAddr
|
protected int |
proxyPort
|
protected java.lang.String |
proxyServer
|
protected java.net.InetAddress |
socksAddr
|
protected int |
socksPort
|
protected java.lang.String |
socksServer
|
protected boolean |
useSocks5ForSocks
|
| Constructor Summary | |
FirewallInfo()
|
|
| Method Summary | |
java.net.InetAddress |
getProxyAddr()
Get the InetAddress of the proxy server. |
int |
getProxyPort()
Get the port to use for the proxy server. |
java.lang.String |
getProxyServer()
Get the name of the proxy server. |
java.net.InetAddress |
getSocksAddr()
Get the InetAddress of the socks server. |
int |
getSocksPort()
Get the port to use for the socks server. |
java.lang.String |
getSocksServer()
Get the name of the socks server. |
boolean |
getUseSocks5()
|
void |
setProxy(java.lang.String server,
int port)
Set the proxy server and port. |
void |
setSocks(java.lang.String server,
int port)
Set the socks server and port. |
void |
setUseSocks5(boolean socks5)
|
java.lang.String |
toString()
String to display what is in FirewallInfo object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.lang.String socksServer
protected int socksPort
protected boolean useSocks5ForSocks
protected java.lang.String proxyServer
protected int proxyPort
protected java.net.InetAddress socksAddr
protected java.net.InetAddress proxyAddr
| Constructor Detail |
public FirewallInfo()
| Method Detail |
public void setSocks(java.lang.String server,
int port)
server - Name of the socks server to use.port - Port number of socks server (usually 1080).public void setUseSocks5(boolean socks5)
public void setProxy(java.lang.String server,
int port)
server - Name of the proxy server to use.port - Port number of proxy server (usually 80).public java.net.InetAddress getSocksAddr()
public java.net.InetAddress getProxyAddr()
public java.lang.String getSocksServer()
public boolean getUseSocks5()
public java.lang.String getProxyServer()
public int getSocksPort()
public int getProxyPort()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||