@ChannelHandler.Sharable public class UniqueIpFilter extends AbstractRemoteAddressFilter<InetSocketAddress>
Channel
connected to the server.ChannelHandler.Sharable
Constructor and Description |
---|
UniqueIpFilter() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
accept(ChannelHandlerContext ctx,
InetSocketAddress remoteAddress)
This method is called immediately after a
Channel gets registered. |
channelAccepted, channelActive, channelRegistered, channelRejected
channelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handlerAdded, handlerRemoved
protected boolean accept(ChannelHandlerContext ctx, InetSocketAddress remoteAddress) throws Exception
AbstractRemoteAddressFilter
Channel
gets registered.accept
in class AbstractRemoteAddressFilter<InetSocketAddress>
Exception
Copyright © 2008–2017 The Netty Project. All rights reserved.