@ChannelHandler.Sharable public class UniqueIpFilter extends AbstractRemoteAddressFilter<InetSocketAddress>
Channel connected to the server.ChannelHandler.Sharable, ChannelHandler.Skip| 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, channelRejectedbind, channelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, close, connect, deregister, disconnect, exceptionCaught, flush, handlerAdded, handlerRemoved, isSharable, read, userEventTriggered, writeprotected boolean accept(ChannelHandlerContext ctx, InetSocketAddress remoteAddress) throws Exception
AbstractRemoteAddressFilterChannel gets registered.accept in class AbstractRemoteAddressFilter<InetSocketAddress>ExceptionCopyright © 2008–2015 The Netty Project. All rights reserved.