Class DefaultServerChannelInitializer
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
org.drasyl.peer.connection.DefaultSessionInitializer
org.drasyl.peer.connection.server.ServerChannelInitializer
org.drasyl.peer.connection.server.DefaultServerChannelInitializer
- All Implemented Interfaces:
 io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
Creates a newly configured 
ChannelPipeline for the node server.- 
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable - 
Field Summary
FieldsFields inherited from class org.drasyl.peer.connection.DefaultSessionInitializer
IDLE_EVENT - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected voidafterPojoMarshalStage(io.netty.channel.ChannelPipeline pipeline) protected voidbeforeMarshalStage(io.netty.channel.ChannelPipeline pipeline) protected voidcustomStage(io.netty.channel.ChannelPipeline pipeline) AddsChannelHandlerto theChannelPipeline, after the default initialization has taken place.protected voidexceptionStage(io.netty.channel.ChannelPipeline pipeline) AddsChannelHandlerfor exception handling to theChannelPipeline.protected io.netty.handler.ssl.SslHandlergenerateSslContext(io.netty.channel.socket.SocketChannel ch) Generates aSslHandlerthat can be added to theChannelPipeline.Methods inherited from class org.drasyl.peer.connection.DefaultSessionInitializer
afterBufferStage, afterExceptionStage, afterFilterStage, afterIdleStage, afterMarshalStage, afterSslStage, beforeBufferStage, beforeExceptionStage, beforeFilterStage, beforeIdleStage, beforePojoMarshalStage, beforeSslStage, bufferStage, filterStage, idleStage, initChannel, marshalStage, pojoMarshalStage, sslStageMethods inherited from class io.netty.channel.ChannelInitializer
channelRegistered, exceptionCaught, handlerAdded, handlerRemovedMethods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggeredMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, isSharable 
- 
Field Details
- 
environment
 
 - 
 - 
Constructor Details
- 
DefaultServerChannelInitializer
 
 - 
 - 
Method Details
- 
beforeMarshalStage
protected void beforeMarshalStage(io.netty.channel.ChannelPipeline pipeline) - Specified by:
 beforeMarshalStagein classDefaultSessionInitializer
 - 
afterPojoMarshalStage
protected void afterPojoMarshalStage(io.netty.channel.ChannelPipeline pipeline) - Overrides:
 afterPojoMarshalStagein classDefaultSessionInitializer
 - 
customStage
protected void customStage(io.netty.channel.ChannelPipeline pipeline) Description copied from class:DefaultSessionInitializerAddsChannelHandlerto theChannelPipeline, after the default initialization has taken place.- Specified by:
 customStagein classDefaultSessionInitializer- Parameters:
 pipeline- theChannelPipeline
 - 
exceptionStage
protected void exceptionStage(io.netty.channel.ChannelPipeline pipeline) Description copied from class:DefaultSessionInitializerAddsChannelHandlerfor exception handling to theChannelPipeline.- Overrides:
 exceptionStagein classDefaultSessionInitializer- Parameters:
 pipeline- theChannelPipeline
 - 
generateSslContext
protected io.netty.handler.ssl.SslHandler generateSslContext(io.netty.channel.socket.SocketChannel ch) throws ServerException Description copied from class:DefaultSessionInitializerGenerates aSslHandlerthat can be added to theChannelPipeline. If this method returnsnull, the SslHandler is not added to theChannelPipeline.- Specified by:
 generateSslContextin classDefaultSessionInitializer- Parameters:
 ch- theSocketChannelto initialize aSslHandler- Returns:
 SslHandlerornull- Throws:
 ServerException
 
 -