IP*Works! V9

ipworks
Class Firewall

java.lang.Object
  extended by ipworks.Firewall

public class Firewall
extends java.lang.Object

The firewall the bean will connect through.

When connecting through a firewall, this type is used to specify different properties of the firewall such as the firewall Host and the FirewallType .

FirewallType: This field determines the type of firewall to connect through. The applicable values are the following:

fwNone (0)
No firewall (default setting).
fwTunnel (1)
Connect through a tunneling proxy. Port is set to 80.
fwSOCKS4 (2)
Connect through a SOCKS4 Proxy. Port is set to 1080.
fwSOCKS5 (3)
Connect through a SOCKS5 Proxy. Port is set to 1080.

Host: This field contains the name or IP address of firewall (optional). If a Host is given, the requested connections will be authenticated through the specified firewall when connecting.

If this field is set to a Domain Name, a DNS request is initiated. Upon successful termination of the request, this field is set to the corresponding address. If the search is not successful, the bean throws an exception.

Password: This field contains a password if authentication is to be used when connecting through the firewall. If Host is specified, the User and Password fields are used to connect and authenticate to the given firewall. If the authentication fails, the bean throws an exception.

Port: This field contains the TCP port for the firewall Host . See the description of the Host field for details.

Note that this field is set automatically when FirewallType is set to a valid value. See the description of the FirewallType field for details.

User: This field contains a user name if authentication is to be used connecting through a firewall. If the Host is specified, this field and Password fields are used to connect and authenticate to the given Firewall . If the authentication fails, the bean throws an exception.

See Also:
Atom, Atom.Firewall

Field Summary
static int fwNone
           
static int fwSOCKS4
           
static int fwSOCKS5
           
static int fwTunnel
           
 
Constructor Summary
Firewall()
           
 
Method Summary
 int getFirewallType()
           
 java.lang.String getHost()
           
 java.lang.String getPassword()
           
 int getPort()
           
 java.lang.String getUser()
           
 void setFirewallType(int value)
           
 void setHost(java.lang.String value)
           
 void setPassword(java.lang.String value)
           
 void setPort(int value)
           
 void setUser(java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fwNone

public static final int fwNone
See Also:
Constant Field Values

fwTunnel

public static final int fwTunnel
See Also:
Constant Field Values

fwSOCKS4

public static final int fwSOCKS4
See Also:
Constant Field Values

fwSOCKS5

public static final int fwSOCKS5
See Also:
Constant Field Values
Constructor Detail

Firewall

public Firewall()
Method Detail

getFirewallType

public int getFirewallType()

setFirewallType

public void setFirewallType(int value)

getHost

public java.lang.String getHost()

setHost

public void setHost(java.lang.String value)

getPassword

public java.lang.String getPassword()

setPassword

public void setPassword(java.lang.String value)

getPort

public int getPort()

setPort

public void setPort(int value)

getUser

public java.lang.String getUser()

setUser

public void setUser(java.lang.String value)

IP*Works! V9

Copyright (c) 2013 /n software inc. - All rights reserved.