Package io.netty.handler.ipfilter
Interface IpFilterRule
- All Known Implementing Classes:
IpSubnetFilterRule
,IpSubnetFilterRule.Ip4SubnetFilterRule
,IpSubnetFilterRule.Ip6SubnetFilterRule
public interface IpFilterRule
Implement this interface to create new rules.
-
Method Summary
-
Method Details
-
matches
- Returns:
- This method should return true if remoteAddress is valid according to your criteria. False otherwise.
-
ruleType
IpFilterRuleType ruleType()- Returns:
- This method should return
IpFilterRuleType.ACCEPT
if allmatches(InetSocketAddress)
for whichmatches(InetSocketAddress)
returns true should the accepted. If you want to exclude all of those IP addresses thenIpFilterRuleType.REJECT
should be returned.
-