T - public abstract class FirewallOpenPortConfigIP<T extends IPAddress> extends Object implements FirewallOpenPortConfig
| Constructor and Description |
|---|
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
|
| Modifier and Type | Method and Description |
|---|---|
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() |
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 connectionspublic int getPort()
FirewallOpenPortConfiggetPort in interface FirewallOpenPortConfigpublic void setPort(int port)
public NetProtocol getProtocol()
FirewallOpenPortConfiggetProtocol in interface FirewallOpenPortConfigpublic void setProtocol(NetProtocol protocol)
public NetworkPair<T> getPermittedNetwork()
FirewallOpenPortConfiggetPermittedNetwork in interface FirewallOpenPortConfigpublic void setPermittedNetwork(NetworkPair<T> permittedNetwork)
public String getPermittedMac()
FirewallOpenPortConfiggetPermittedMac in interface FirewallOpenPortConfigpublic void setPermittedMac(String permittedMac)
public String getSourcePortRange()
FirewallOpenPortConfiggetSourcePortRange in interface FirewallOpenPortConfigpublic void setSourcePortRange(String sourcePortRange)
public boolean isValid()
NetConfigCopyright © 2013. All Rights Reserved.