|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.eurotech.framework.net.firewall.FirewallOpenPortConfigIP<T>
T
- public abstract class FirewallOpenPortConfigIP<T extends IPAddress>
The base class for firewall open port configurations
Constructor Summary | |
---|---|
FirewallOpenPortConfigIP()
Creates and empty open port configuration |
|
FirewallOpenPortConfigIP(int port,
NetProtocol protocol,
NetworkPair<T> permittedNetwork,
String permittedMac,
String sourcePortRange)
Creates a complete Open Port configuration |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
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 |
int |
getPort()
Gets the port that is open for inbound connections |
NetProtocol |
getProtocol()
Gets the type of network protocol (TCP or UDP) that is open for inbound connections |
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 |
setPermittedMac(String permittedMac)
|
void |
setPermittedNetwork(NetworkPair<T> permittedNetwork)
|
void |
setPort(int port)
|
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 FirewallOpenPortConfigIP()
public FirewallOpenPortConfigIP(int port, NetProtocol protocol, NetworkPair<T> permittedNetwork, String permittedMac, String sourcePortRange)
port
- The port to open for inbound connectionsprotocol
- The type of protocol to allow for inbound connectionspermittedNetwork
- 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 int getPort()
FirewallOpenPortConfig
getPort
in interface FirewallOpenPortConfig
public void setPort(int port)
public NetProtocol getProtocol()
FirewallOpenPortConfig
getProtocol
in interface FirewallOpenPortConfig
public void setProtocol(NetProtocol protocol)
public NetworkPair<T> getPermittedNetwork()
FirewallOpenPortConfig
getPermittedNetwork
in interface FirewallOpenPortConfig
public void setPermittedNetwork(NetworkPair<T> permittedNetwork)
public String getPermittedMac()
FirewallOpenPortConfig
getPermittedMac
in interface FirewallOpenPortConfig
public void setPermittedMac(String permittedMac)
public String getSourcePortRange()
FirewallOpenPortConfig
getSourcePortRange
in interface FirewallOpenPortConfig
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 |