public class IpSubnetFilterRule extends IpSubnet implements IpFilterRule
Constructor and Description |
---|
IpSubnetFilterRule(boolean allow)
Constructor for a ALLOW or DENY ALL
|
IpSubnetFilterRule(boolean allow,
InetAddress inetAddress,
int cidrNetMask) |
IpSubnetFilterRule(boolean allow,
InetAddress inetAddress,
String netMask) |
IpSubnetFilterRule(boolean allow,
String netAddress) |
Modifier and Type | Method and Description |
---|---|
boolean |
isAllowRule() |
boolean |
isDenyRule() |
compareTo, contains, contains, equals, hashCode, toString
public IpSubnetFilterRule(boolean allow)
allow
- True for ALLOW, False for DENYpublic IpSubnetFilterRule(boolean allow, InetAddress inetAddress, int cidrNetMask) throws UnknownHostException
allow
- True for ALLOW, False for DENYUnknownHostException
public IpSubnetFilterRule(boolean allow, InetAddress inetAddress, String netMask) throws UnknownHostException
allow
- True for ALLOW, False for DENYUnknownHostException
public IpSubnetFilterRule(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.