@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, setIpFilterListener
protected boolean accept(ChannelHandlerContext ctx, ChannelEvent e, InetSocketAddress inetSocketAddress) throws Exception
IpFilteringHandlerImpl
accept
in class IpFilteringHandlerImpl
inetSocketAddress
- the remote InetSocketAddress
from clientException
public void handleUpstream(ChannelHandlerContext ctx, ChannelEvent e) throws Exception
ChannelUpstreamHandler
handleUpstream
in interface ChannelUpstreamHandler
handleUpstream
in class IpFilteringHandlerImpl
ctx
- the context object for this handlere
- the upstream event to process or interceptException
Copyright © 2008-2014 The Netty Project. All Rights Reserved.