Package com.corundumstudio.socketio
Class SocketIOChannelInitializer
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.ChannelInitializer<io.netty.channel.Channel>
com.corundumstudio.socketio.SocketIOChannelInitializer
- All Implemented Interfaces:
Disconnectable,DisconnectableHub,io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
public class SocketIOChannelInitializer
extends io.netty.channel.ChannelInitializer<io.netty.channel.Channel>
implements DisconnectableHub
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddSocketioHandlers(io.netty.channel.ChannelPipeline pipeline) Adds the socketio channel handlersprotected voidaddSslHandler(io.netty.channel.ChannelPipeline pipeline) Adds the ssl handlervoidhandlerAdded(io.netty.channel.ChannelHandlerContext ctx) protected voidinitChannel(io.netty.channel.Channel ch) voidonDisconnect(ClientHead client) voidstart(Configuration configuration, NamespacesHub namespacesHub) voidstop()Methods inherited from class io.netty.channel.ChannelInitializer
channelRegistered, exceptionCaught, 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
-
SOCKETIO_ENCODER
- See Also:
-
WEB_SOCKET_TRANSPORT_COMPRESSION
- See Also:
-
WEB_SOCKET_TRANSPORT
- See Also:
-
WEB_SOCKET_AGGREGATOR
- See Also:
-
XHR_POLLING_TRANSPORT
- See Also:
-
AUTHORIZE_HANDLER
- See Also:
-
PACKET_HANDLER
- See Also:
-
HTTP_ENCODER
- See Also:
-
HTTP_COMPRESSION
- See Also:
-
HTTP_AGGREGATOR
- See Also:
-
HTTP_REQUEST_DECODER
- See Also:
-
SSL_HANDLER
- See Also:
-
RESOURCE_HANDLER
- See Also:
-
WRONG_URL_HANDLER
- See Also:
-
-
Constructor Details
-
SocketIOChannelInitializer
public SocketIOChannelInitializer()
-
-
Method Details
-
handlerAdded
public void handlerAdded(io.netty.channel.ChannelHandlerContext ctx) - Specified by:
handlerAddedin interfaceio.netty.channel.ChannelHandler- Overrides:
handlerAddedin classio.netty.channel.ChannelInitializer<io.netty.channel.Channel>
-
start
-
initChannel
- Specified by:
initChannelin classio.netty.channel.ChannelInitializer<io.netty.channel.Channel>- Throws:
Exception
-
addSslHandler
protected void addSslHandler(io.netty.channel.ChannelPipeline pipeline) Adds the ssl handler- Parameters:
pipeline- - channel pipeline
-
addSocketioHandlers
protected void addSocketioHandlers(io.netty.channel.ChannelPipeline pipeline) Adds the socketio channel handlers- Parameters:
pipeline- - channel pipeline
-
onDisconnect
- Specified by:
onDisconnectin interfaceDisconnectable
-
stop
public void stop()
-