Package org.jboss.netty.handler.ipfilter
Class IpV4SubnetFilterRule
java.lang.Object
org.jboss.netty.handler.ipfilter.IpV4Subnet
org.jboss.netty.handler.ipfilter.IpV4SubnetFilterRule
- All Implemented Interfaces:
Comparable<IpV4Subnet>
,IpFilterRule
,IpSet
IpV4 only Filter Rule
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
Is this IpV4Subnet an ALLOW or DENY rule -
Constructor Summary
ConstructorsConstructorDescriptionIpV4SubnetFilterRule
(boolean allow) Constructor for a ALLOW or DENY ALLIpV4SubnetFilterRule
(boolean allow, String netAddress) IpV4SubnetFilterRule
(boolean allow, InetAddress inetAddress, int cidrNetMask) IpV4SubnetFilterRule
(boolean allow, InetAddress inetAddress, String netMask) -
Method Summary
Methods inherited from class org.jboss.netty.handler.ipfilter.IpV4Subnet
compareTo, contains, contains, equals, hashCode, toString
-
Field Details
-
isAllowRule
private boolean isAllowRuleIs this IpV4Subnet an ALLOW or DENY rule
-
-
Constructor Details
-
IpV4SubnetFilterRule
public IpV4SubnetFilterRule(boolean allow) Constructor for a ALLOW or DENY ALL- Parameters:
allow
- True for ALLOW, False for DENY
-
IpV4SubnetFilterRule
- Parameters:
allow
- True for ALLOW, False for DENY
-
IpV4SubnetFilterRule
- Parameters:
allow
- True for ALLOW, False for DENY
-
IpV4SubnetFilterRule
- Parameters:
allow
- True for ALLOW, False for DENY- Throws:
UnknownHostException
-
-
Method Details
-
isAllowRule
public boolean isAllowRule()- Specified by:
isAllowRule
in interfaceIpFilterRule
- Returns:
- True if this Rule is an ALLOW rule
-
isDenyRule
public boolean isDenyRule()- Specified by:
isDenyRule
in interfaceIpFilterRule
- Returns:
- True if this Rule is a DENY rule
-