public class AcceptRuleBasedIpFilter extends AbstractRemoteAddressFilter<InetSocketAddress>
Channels based on the
HashSet passed to its constructor. If no rules are provided, no connections
will be accepted.| Constructor and Description |
|---|
AcceptRuleBasedIpFilter(String[] ip) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
accept(org.apache.flink.shaded.netty4.io.netty.channel.ChannelHandlerContext ctx,
InetSocketAddress remoteAddress)
This method is called immediately after a
io.netty.channel.Channel gets registered. |
channelAccepted, channelActive, channelRegistered, channelRejectedchannelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic AcceptRuleBasedIpFilter(String[] ip)
protected boolean accept(org.apache.flink.shaded.netty4.io.netty.channel.ChannelHandlerContext ctx,
InetSocketAddress remoteAddress)
AbstractRemoteAddressFilterio.netty.channel.Channel gets registered.accept in class AbstractRemoteAddressFilter<InetSocketAddress>Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.