Package io.netty.handler.ipfilter
Interface IpFilterRule
-
- All Known Implementing Classes:
IpSubnetFilterRule
public interface IpFilterRuleImplement this interface to create new rules.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanmatches(java.net.InetSocketAddress remoteAddress)IpFilterRuleTyperuleType()
-
-
-
Method Detail
-
matches
boolean matches(java.net.InetSocketAddress remoteAddress)
- 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.ACCEPTif allmatches(InetSocketAddress)for whichmatches(InetSocketAddress)returns true should the accepted. If you want to exclude all of those IP addresses thenIpFilterRuleType.REJECTshould be returned.
-
-