public class IpFilter
extends io.netty.channel.ChannelInboundHandlerAdapter
| Constructor and Description |
|---|
IpFilter(IpFilterConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
channelActive(io.netty.channel.ChannelHandlerContext ctx)
channel is active, check remote ip against the filter.
|
void |
channelRegistered(io.netty.channel.ChannelHandlerContext ctx)
channel has been registered with it's eventloop, we may have a
remote ip, try to filter.
|
channelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredhandlerAdded, handlerRemoved, isSharablepublic IpFilter(IpFilterConfig config)
public void channelRegistered(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelRegistered in interface io.netty.channel.ChannelInboundHandlerchannelRegistered in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void channelActive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelActive in interface io.netty.channel.ChannelInboundHandlerchannelActive in class io.netty.channel.ChannelInboundHandlerAdapterExceptionCopyright © 2016. All Rights Reserved.