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()
matches(InetSocketAddress)
的matches(InetSocketAddress)
返回true,则该方法应该返回IpFilterRuleType.ACCEPT
。
如果你想排除所有这些IP地址,那么应该返回IpFilterRuleType.REJECT
。
Copyright © 2008–2018 The Netty Project. All rights reserved.