
@ChannelHandler.Sharable public class OneIpFilterHandler extends IpFilteringHandlerImpl
ChannelHandler.Sharable| Constructor and Description |
|---|
OneIpFilterHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
accept(ChannelHandlerContext ctx,
ChannelEvent e,
InetSocketAddress inetSocketAddress)
Called when the channel is connected.
|
void |
handleUpstream(ChannelHandlerContext ctx,
ChannelEvent e)
Handles the specified upstream event.
|
continues, handleAllowedChannel, handleRefusedChannel, isBlocked, removeIpFilterListener, setIpFilterListenerprotected boolean accept(ChannelHandlerContext ctx, ChannelEvent e, InetSocketAddress inetSocketAddress) throws Exception
IpFilteringHandlerImplaccept in class IpFilteringHandlerImplinetSocketAddress - the remote InetSocketAddress from clientExceptionpublic void handleUpstream(ChannelHandlerContext ctx, ChannelEvent e) throws Exception
ChannelUpstreamHandlerhandleUpstream in interface ChannelUpstreamHandlerhandleUpstream in class IpFilteringHandlerImplctx - the context object for this handlere - the upstream event to process or interceptExceptionCopyright © 2008-2013 The Netty Project. All Rights Reserved.