public interface IpFilterRule
Modifier and Type | Method and Description |
---|---|
boolean |
matches(java.net.InetSocketAddress remoteAddress) |
IpFilterRuleType |
ruleType() |
boolean matches(java.net.InetSocketAddress remoteAddress)
IpFilterRuleType ruleType()
IpFilterRuleType.ACCEPT
if all
matches(InetSocketAddress)
for which matches(InetSocketAddress)
returns true should the accepted. If you want to exclude all of those IP addresses then
IpFilterRuleType.REJECT
should be returned.Copyright © 2008–2018 The Netty Project. All rights reserved.