com.ibm.wbi.protocol.http.sublayer
Class FirewallInfo

java.lang.Object
  |
  +--com.ibm.wbi.protocol.http.sublayer.FirewallInfo

public class FirewallInfo
extends java.lang.Object

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

socksServer

protected java.lang.String socksServer

socksPort

protected int socksPort

useSocks5ForSocks

protected boolean useSocks5ForSocks

proxyServer

protected java.lang.String proxyServer

proxyPort

protected int proxyPort

socksAddr

protected java.net.InetAddress socksAddr

proxyAddr

protected java.net.InetAddress proxyAddr
Constructor Detail

FirewallInfo

public FirewallInfo()
Method Detail

setSocks

public void setSocks(java.lang.String server,
                     int port)
Set the socks server and port.
Parameters:
server - Name of the socks server to use.
port - Port number of socks server (usually 1080).

setUseSocks5

public void setUseSocks5(boolean socks5)

setProxy

public void setProxy(java.lang.String server,
                     int port)
Set the proxy server and port.
Parameters:
server - Name of the proxy server to use.
port - Port number of proxy server (usually 80).

getSocksAddr

public java.net.InetAddress getSocksAddr()
Get the InetAddress of the socks server.
Returns:
address of socks server (or null if not set).

getProxyAddr

public java.net.InetAddress getProxyAddr()
Get the InetAddress of the proxy server.
Returns:
address of proxy server (or null if not set).

getSocksServer

public java.lang.String getSocksServer()
Get the name of the socks server.
Returns:
name of socks server (or null if not set).

getUseSocks5

public boolean getUseSocks5()

getProxyServer

public java.lang.String getProxyServer()
Get the name of the proxy server.
Returns:
name of proxy server (or null if not set).

getSocksPort

public int getSocksPort()
Get the port to use for the socks server.
Returns:
port of socks server.

getProxyPort

public int getProxyPort()
Get the port to use for the proxy server.
Returns:
port of proxy server.

toString

public java.lang.String toString()
String to display what is in FirewallInfo object.
Overrides:
toString in class java.lang.Object
Returns:
simple strinmg representation of FirewallInfo object.