public abstract class AbstractRemoteAddressFilter<T extends SocketAddress> extends ChannelInboundHandlerAdapter
| 构造器和说明 |
|---|
AbstractRemoteAddressFilter() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected abstract boolean |
accept(SocketChannel aioChannel,
T remoteAddress) |
void |
channelAdded(SocketChannel socketChannel) |
channelClosed, channelRead, channelWrite, decode, encode, exceptionCaught, userEventTriggeredclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchannelClosed, channelRead, decode, exceptionCaughtchannelWrite, encode, userEventTriggeredpublic void channelAdded(SocketChannel socketChannel) throws Exception
channelAdded 在接口中 ChannelBoundHandlerchannelAdded 在接口中 ChannelInboundHandlerchannelAdded 在类中 ChannelHandlerAdapterExceptionprotected abstract boolean accept(SocketChannel aioChannel, T remoteAddress)
aioChannel - 通道remoteAddress - 远程地址Copyright © 2021. All rights reserved.