|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.eurotech.framework.net.firewall.FirewallNatConfig
public class FirewallNatConfig
Represents a NAT configuration
| Constructor Summary | |
|---|---|
FirewallNatConfig()
Creates a null NAT configuration |
|
FirewallNatConfig(String sourceInterface,
String destinationInterface,
boolean masquerade)
Creates a complete NAT configuration |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
String |
getDestinationInterface()
|
String |
getSourceInterface()
|
int |
hashCode()
|
boolean |
isMasquerade()
|
boolean |
isValid()
Checks whether or not this configuration is valid. |
void |
setDestinationInterface(String destinationInterface)
|
void |
setMasquerade(boolean masquerade)
|
void |
setSourceInterface(String sourceInterface)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FirewallNatConfig()
public FirewallNatConfig(String sourceInterface,
String destinationInterface,
boolean masquerade)
sourceInterface - The source interface (LAN interface) for the NAT configurationdestinationInterface - The destination interface (WAN interface) for the NAT configurationmasquerade - Whether or not MASQUERADE should be enabled| Method Detail |
|---|
public String getSourceInterface()
public void setSourceInterface(String sourceInterface)
public String getDestinationInterface()
public void setDestinationInterface(String destinationInterface)
public boolean isMasquerade()
public void setMasquerade(boolean masquerade)
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic boolean isValid()
NetConfig
isValid in interface NetConfigpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||