AeroGear Netty SockJS Codec 0.11.0

org.jboss.aerogear.io.netty.handler.codec.sockjs.handler
Class SessionHandler

java.lang.Object
  extended by io.netty.channel.ChannelHandlerAdapter
      extended by 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 Class Summary
 class SessionHandler.DefaultSockJsSessionContext
           
static class SessionHandler.Event
           
 
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)
           
 
Method Summary
 void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
           
 void channelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg)
           
 void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx, Object event)
           
 
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
 

Constructor Detail

SessionHandler

public SessionHandler(org.jboss.aerogear.io.netty.handler.codec.sockjs.handler.SessionState sessionState)
Method Detail

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

AeroGear Netty SockJS Codec 0.11.0

Copyright © 2014 JBoss by Red Hat. All Rights Reserved.