public class IpV4SubnetFilterRule extends IpV4Subnet implements IpFilterRule
| Modifier and Type | Field and Description |
|---|---|
private boolean |
isAllowRule
Is this IpV4Subnet an ALLOW or DENY rule
|
| Constructor and Description |
|---|
IpV4SubnetFilterRule(boolean allow)
Constructor for a ALLOW or DENY ALL
|
IpV4SubnetFilterRule(boolean allow,
java.net.InetAddress inetAddress,
int cidrNetMask) |
IpV4SubnetFilterRule(boolean allow,
java.net.InetAddress inetAddress,
java.lang.String netMask) |
IpV4SubnetFilterRule(boolean allow,
java.lang.String netAddress) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAllowRule() |
boolean |
isDenyRule() |
compareTo, contains, contains, equals, hashCode, toStringpublic IpV4SubnetFilterRule(boolean allow)
allow - True for ALLOW, False for DENYpublic IpV4SubnetFilterRule(boolean allow,
java.net.InetAddress inetAddress,
int cidrNetMask)
allow - True for ALLOW, False for DENYpublic IpV4SubnetFilterRule(boolean allow,
java.net.InetAddress inetAddress,
java.lang.String netMask)
allow - True for ALLOW, False for DENYpublic IpV4SubnetFilterRule(boolean allow,
java.lang.String netAddress)
throws java.net.UnknownHostException
allow - True for ALLOW, False for DENYjava.net.UnknownHostExceptionpublic boolean isAllowRule()
isAllowRule in interface IpFilterRulepublic boolean isDenyRule()
isDenyRule in interface IpFilterRule