AeroGear Netty SockJS Codec 0.11.0

org.jboss.aerogear.io.netty.handler.codec.sockjs
Interface SockJsSessionContext

All Known Implementing Classes:
SessionHandler.DefaultSockJsSessionContext

public interface SockJsSessionContext

Allows a SockJsService to interact with its session by providing methods to send data, and to close the session.


Method Summary
 void close()
          Close the current session.
 io.netty.channel.ChannelHandlerContext getContext()
          Get the underlying ChannelHandlerContext.
 void send(String message)
          Send data to the current session.
 

Method Detail

send

void send(String message)
Send data to the current session. This data might be delivered immediately of queued up in the session depending on the type of session (polling, streaming etc)

Parameters:
message - the message to be sent.

close

void close()
Close the current session.


getContext

io.netty.channel.ChannelHandlerContext getContext()
Get the underlying ChannelHandlerContext.


AeroGear Netty SockJS Codec 0.11.0

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