-
- All Known Implementing Classes:
IpSubnetFilterRule
public interface IpFilterRule
Implement this interface to create new rules.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
matches(InetSocketAddress remoteAddress)
IpFilterRuleType
ruleType()
-
-
-
Method Detail
-
matches
boolean matches(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.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.
-
-