public final class SocksServerInitializer extends ChannelInitializer<SocketChannel>
ChannelHandler.Sharable| 构造器和说明 |
|---|
SocksServerInitializer() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
initChannel(SocketChannel socketChannel)
This method will be called once the
Channel was registered. |
channelRegistered, exceptionCaught, handlerAddedchannelActive, channelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggeredensureNotSharable, handlerRemoved, isSharableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandlerRemovedpublic void initChannel(SocketChannel socketChannel) throws java.lang.Exception
ChannelInitializerChannel was registered. After the method returns this instance
will be removed from the ChannelPipeline of the Channel.initChannel 在类中 ChannelInitializer<SocketChannel>socketChannel - the Channel which was registered.java.lang.Exception - is thrown if an error occurs. In that case it will be handled by
ChannelInitializer.exceptionCaught(ChannelHandlerContext, Throwable) which will by default close
the Channel.