|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.eurotech.framework.net.firewall.FirewallPortForwardConfigIP<T>
T
- public abstract class FirewallPortForwardConfigIP<T extends IPAddress>
The base class for firewall port forward configurations
Constructor Summary | |
---|---|
FirewallPortForwardConfigIP()
Creates and empty port forward configuration |
|
FirewallPortForwardConfigIP(String interfaceName,
IP4Address address,
NetProtocol protocol,
int inPort,
int outPort,
NetworkPair<T> permittedNetwork,
String permittedMac,
String sourcePortRange)
Creates a complete port forward configuration |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
IP4Address |
getAddress()
The LAN IP address to forward connections to |
int |
getInPort()
The inbound (WAN) port to use for this configuration |
String |
getInterfaceName()
The external (WAN) interface to listen for inbound connections on |
int |
getOutPort()
The outbound (LAN) port to use for this configuration |
String |
getPermittedMac()
Gets the (optional) permitted MAC address that is allowed to make inbound connections |
NetworkPair<T> |
getPermittedNetwork()
Gets the (optional) permitted remote network that can make inbound connections |
NetProtocol |
getProtocol()
Gets the type of network protocol (TCP or UDP) that is used for this configuration |
String |
getSourcePortRange()
Gets the (optional) permitted source port range that is allowed to make inbound connections |
int |
hashCode()
|
boolean |
isValid()
Checks whether or not this configuration is valid. |
void |
setAddress(IP4Address address)
|
void |
setInPort(int inPort)
|
void |
setInterfaceName(String interfaceName)
|
void |
setOutPort(int outPort)
|
void |
setPermittedMac(String permittedMac)
|
void |
setPermittedNetwork(NetworkPair<T> permittedNetwork)
|
void |
setProtocol(NetProtocol protocol)
|
void |
setSourcePortRange(String sourcePortRange)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FirewallPortForwardConfigIP()
public FirewallPortForwardConfigIP(String interfaceName, IP4Address address, NetProtocol protocol, int inPort, int outPort, NetworkPair<T> permittedNetwork, String permittedMac, String sourcePortRange)
interfaceName
- The interface name on which this configuration will listen for inbound connectionsaddress
- The LAN address to forward toprotocol
- The protocol (TCP or UDP) to listen for and forwardinPort
- The inbound (WAN) port to listen onoutPort
- The outbound (LAN) port to listen onpermittedNetwork
- The (optional) permitted network for inbound connectionspermittedMac
- The (optional) permitted MAC address for inbound connectionssourcePortRange
- The (options) permitted source port range for inbound connectionsMethod Detail |
---|
public String getInterfaceName()
FirewallPortForwardConfig
getInterfaceName
in interface FirewallPortForwardConfig
public void setInterfaceName(String interfaceName)
public IP4Address getAddress()
FirewallPortForwardConfig
getAddress
in interface FirewallPortForwardConfig
public void setAddress(IP4Address address)
public NetProtocol getProtocol()
FirewallPortForwardConfig
getProtocol
in interface FirewallPortForwardConfig
public void setProtocol(NetProtocol protocol)
public int getInPort()
FirewallPortForwardConfig
getInPort
in interface FirewallPortForwardConfig
public void setInPort(int inPort)
public int getOutPort()
FirewallPortForwardConfig
getOutPort
in interface FirewallPortForwardConfig
public void setOutPort(int outPort)
public NetworkPair<T> getPermittedNetwork()
FirewallPortForwardConfig
getPermittedNetwork
in interface FirewallPortForwardConfig
public void setPermittedNetwork(NetworkPair<T> permittedNetwork)
public String getPermittedMac()
FirewallPortForwardConfig
getPermittedMac
in interface FirewallPortForwardConfig
public void setPermittedMac(String permittedMac)
public String getSourcePortRange()
FirewallPortForwardConfig
getSourcePortRange
in interface FirewallPortForwardConfig
public void setSourcePortRange(String sourcePortRange)
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public boolean isValid()
NetConfig
isValid
in interface NetConfig
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |