|
SIP Communicator: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.netaddr.FirewallDescriptor
public class FirewallDescriptor
todo: add a type for the open internet
| Field Summary | |
|---|---|
static int |
TYPE_FULL_CONE
Full cone NAT or firewall. |
static int |
TYPE_OPEN_INTERNET
Means no firewall or nat. |
static int |
TYPE_PORT_RESTRICTED_CONE
Port restricted cone NAT or firewall. |
static int |
TYPE_RESTRICTED_CONE
Restricted cone NAT or firewall. |
static int |
TYPE_SYMMETRIC
Symmetric NAT or firewall. |
| Constructor Summary | |
|---|---|
FirewallDescriptor()
Constructs an empty firewall descirptor |
|
| Method Summary | |
|---|---|
AddressPreference |
getAddressPreferenceSubtrahend()
Returns the address preference subtrahend corresponding to the firewall referenced by this descriptor. |
int |
getBindingsLifetime()
Returns the time (in seconds) that address port bindings remain active on this firewall without the node sendind any packets. |
InetAddress |
getPublicAddress()
Returns the public IP address of the firewall. |
int |
getType()
Returns the type of the firewall referenced by this desciptor |
boolean |
isTranslatingAddresses()
Determines whether this is an address translating firewall (NAT) or not. |
(package private) void |
setBindingsLifetime(int lifetime)
Sets the time (in seconds) that address port bindings remain active on this firewall without the node sendind any packets. |
(package private) void |
setPreferenceSubtrahend(AddressPreference subtrahend)
Sets the address preference subtrahend corresponding to the firewall referenced by this descriptor. |
(package private) void |
setPublicAddress(InetAddress address)
Sets the public IP address of the firewall. |
(package private) void |
setTranslatingAddresses(boolean isNAT)
Specifies whether this is an address translating firewall (NAT) or not. |
(package private) void |
setType(int type)
Set the type of this firewall. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int TYPE_OPEN_INTERNET
public static final int TYPE_FULL_CONE
public static final int TYPE_RESTRICTED_CONE
public static final int TYPE_PORT_RESTRICTED_CONE
public static final int TYPE_SYMMETRIC
| Constructor Detail |
|---|
FirewallDescriptor()
| Method Detail |
|---|
void setType(int type)
type - the type of the firewall referenced by this descriptor.public int getType()
void setPreferenceSubtrahend(AddressPreference subtrahend)
subtrahend - the amount of address preference points that need to
be subtracted from address preferences of oaddresses behind this
firewall.public AddressPreference getAddressPreferenceSubtrahend()
void setPublicAddress(InetAddress address)
address - the ip address of the natpublic InetAddress getPublicAddress()
void setBindingsLifetime(int lifetime)
lifetime - the number of seconds that bindings on this firewall
remain activepublic int getBindingsLifetime()
void setTranslatingAddresses(boolean isNAT)
isNAT - a boolean specifying whether the firewall referenced by this
descriptor is a NAT.public boolean isTranslatingAddresses()
|
SIP Communicator: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||