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, userEventTriggered
handlerAdded, handlerRemoved, isSharable
public IpFilter(IpFilterConfig config)
public void channelRegistered(io.netty.channel.ChannelHandlerContext ctx) throws Exception
channelRegistered
in interface io.netty.channel.ChannelInboundHandler
channelRegistered
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
public void channelActive(io.netty.channel.ChannelHandlerContext ctx) throws Exception
channelActive
in interface io.netty.channel.ChannelInboundHandler
channelActive
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
Copyright © 2016. All Rights Reserved.