org.jboss.aerogear.io.netty.handler.codec.sockjs.handler
Class SessionHandler
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
org.jboss.aerogear.io.netty.handler.codec.sockjs.handler.SessionHandler
- All Implemented Interfaces:
- io.netty.channel.ChannelHandler
public class SessionHandler
- extends io.netty.channel.ChannelHandlerAdapter
A ChannelHandler that manages SockJS sessions.
For every connection received a new SessionHandler will be created and added to
the pipeline.
Depending on the type of connection (polling, streaming, send, or websocket)
the type of SessionState that this session handles will differ.
| Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler |
io.netty.channel.ChannelHandler.Sharable, io.netty.channel.ChannelHandler.Skip |
|
Constructor Summary |
SessionHandler(org.jboss.aerogear.io.netty.handler.codec.sockjs.handler.SessionState sessionState)
|
| Methods inherited from class io.netty.channel.ChannelHandlerAdapter |
bind, channelActive, channelReadComplete, channelRegistered, channelWritabilityChanged, close, connect, disconnect, exceptionCaught, flush, handlerAdded, handlerRemoved, isSharable, read, write |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SessionHandler
public SessionHandler(org.jboss.aerogear.io.netty.handler.codec.sockjs.handler.SessionState sessionState)
channelRead
public void channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg)
throws Exception
- Specified by:
channelRead in interface io.netty.channel.ChannelHandler- Overrides:
channelRead in class io.netty.channel.ChannelHandlerAdapter
- Throws:
Exception
channelInactive
public void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
- Specified by:
channelInactive in interface io.netty.channel.ChannelHandler- Overrides:
channelInactive in class io.netty.channel.ChannelHandlerAdapter
- Throws:
Exception
userEventTriggered
public void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
Object event)
throws Exception
- Specified by:
userEventTriggered in interface io.netty.channel.ChannelHandler- Overrides:
userEventTriggered in class io.netty.channel.ChannelHandlerAdapter
- Throws:
Exception
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.