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()
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 boolean isValid()
NetConfig
Copyright © 2013. All Rights Reserved.