@ChannelHandler.Sharable public class OneIpFilterHandler extends IpFilteringHandlerImpl
ChannelHandler.Sharable| Modifier and Type | Field and Description |
|---|---|
private java.util.concurrent.ConcurrentMap<java.net.InetAddress,java.lang.Boolean> |
connectedSet
HashMap of current remote connected InetAddress
|
| Constructor and Description |
|---|
OneIpFilterHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
accept(ChannelHandlerContext ctx,
ChannelEvent e,
java.net.InetSocketAddress inetSocketAddress)
Called when the channel is connected.
|
void |
handleUpstream(ChannelHandlerContext ctx,
ChannelEvent e)
Handles the specified upstream event.
|
continues, handleAllowedChannel, handleRefusedChannel, isBlocked, removeIpFilterListener, setIpFilterListenerprivate final java.util.concurrent.ConcurrentMap<java.net.InetAddress,java.lang.Boolean> connectedSet
protected boolean accept(ChannelHandlerContext ctx, ChannelEvent e, java.net.InetSocketAddress inetSocketAddress) throws java.lang.Exception
IpFilteringHandlerImplaccept in class IpFilteringHandlerImplinetSocketAddress - the remote InetSocketAddress from clientjava.lang.Exceptionpublic void handleUpstream(ChannelHandlerContext ctx, ChannelEvent e) throws java.lang.Exception
ChannelUpstreamHandlerhandleUpstream in interface ChannelUpstreamHandlerhandleUpstream in class IpFilteringHandlerImplctx - the context object for this handlere - the upstream event to process or interceptjava.lang.Exception