Interface IpFilterRule
- All Known Implementing Classes:
IpSubnetFilterRule
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.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.
-