public class IpV4SubnetFilterRule extends IpV4Subnet implements IpFilterRule
Constructor and Description |
---|
IpV4SubnetFilterRule(boolean allow)
Constructor for a ALLOW or DENY ALL
|
IpV4SubnetFilterRule(boolean allow,
InetAddress inetAddress,
int cidrNetMask) |
IpV4SubnetFilterRule(boolean allow,
InetAddress inetAddress,
String netMask) |
IpV4SubnetFilterRule(boolean allow,
String netAddress) |
Modifier and Type | Method and Description |
---|---|
boolean |
isAllowRule() |
boolean |
isDenyRule() |
compareTo, contains, contains, equals, hashCode, toString
public IpV4SubnetFilterRule(boolean allow)
allow
- True for ALLOW, False for DENYpublic IpV4SubnetFilterRule(boolean allow, InetAddress inetAddress, int cidrNetMask)
allow
- True for ALLOW, False for DENYpublic IpV4SubnetFilterRule(boolean allow, InetAddress inetAddress, String netMask)
allow
- True for ALLOW, False for DENYpublic IpV4SubnetFilterRule(boolean allow, String netAddress) throws UnknownHostException
allow
- True for ALLOW, False for DENYUnknownHostException
public boolean isAllowRule()
isAllowRule
in interface IpFilterRule
public boolean isDenyRule()
isDenyRule
in interface IpFilterRule
Copyright © 2008-2015 The Netty Project. All Rights Reserved.