|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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 connections| Method Detail |
|---|
public int getPort()
FirewallOpenPortConfig
getPort in interface FirewallOpenPortConfigpublic void setPort(int port)
public NetProtocol getProtocol()
FirewallOpenPortConfig
getProtocol in interface FirewallOpenPortConfigpublic void setProtocol(NetProtocol protocol)
public NetworkPair<T> getPermittedNetwork()
FirewallOpenPortConfig
getPermittedNetwork in interface FirewallOpenPortConfigpublic void setPermittedNetwork(NetworkPair<T> permittedNetwork)
public String getPermittedMac()
FirewallOpenPortConfig
getPermittedMac in interface FirewallOpenPortConfigpublic void setPermittedMac(String permittedMac)
public String getSourcePortRange()
FirewallOpenPortConfig
getSourcePortRange in interface FirewallOpenPortConfigpublic void setSourcePortRange(String sourcePortRange)
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 | |||||||||