@ChannelHandler.Sharable public class UniqueIpFilter extends AbstractRemoteAddressFilter<java.net.InetSocketAddress>
Channel
connected to the server.ChannelHandler.Sharable
Modifier and Type | Field and Description |
---|---|
private java.util.Set<java.net.InetAddress> |
connected |
Constructor and Description |
---|
UniqueIpFilter() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
accept(ChannelHandlerContext ctx,
java.net.InetSocketAddress remoteAddress)
This method is called immediately after a
Channel gets registered. |
channelAccepted, channelActive, channelRegistered, channelRejected
channelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
handlerAdded, handlerRemoved, isSharable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handlerAdded, handlerRemoved
protected boolean accept(ChannelHandlerContext ctx, java.net.InetSocketAddress remoteAddress) throws java.lang.Exception
AbstractRemoteAddressFilter
Channel
gets registered.accept
in class AbstractRemoteAddressFilter<java.net.InetSocketAddress>
java.lang.Exception