AeroGear SimplePush Server Netty 0.11.0

org.jboss.aerogear.simplepush.server.netty
Class SimplePushSockJSService

java.lang.Object
  extended by org.jboss.aerogear.simplepush.server.netty.SimplePushSockJSService
All Implemented Interfaces:
org.jboss.aerogear.io.netty.handler.codec.sockjs.SockJsService

public class SimplePushSockJSService
extends Object
implements org.jboss.aerogear.io.netty.handler.codec.sockjs.SockJsService

SimplePush server implementation using SockJS.


Constructor Summary
SimplePushSockJSService(org.jboss.aerogear.io.netty.handler.codec.sockjs.SockJsConfig sockjsConfig, org.jboss.aerogear.simplepush.server.SimplePushServer simplePushServer)
          Sole constructor.
 
Method Summary
 org.jboss.aerogear.io.netty.handler.codec.sockjs.SockJsConfig config()
           
 void onClose()
           
 void onMessage(String message)
           
 void onOpen(org.jboss.aerogear.io.netty.handler.codec.sockjs.SockJsSessionContext session)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimplePushSockJSService

public SimplePushSockJSService(org.jboss.aerogear.io.netty.handler.codec.sockjs.SockJsConfig sockjsConfig,
                               org.jboss.aerogear.simplepush.server.SimplePushServer simplePushServer)
Sole constructor.

Parameters:
sockjsConfig - the SockJS SockJsConfig for this service.
simplePushServer - the SimplePushServer that this instance will use.
Method Detail

config

public org.jboss.aerogear.io.netty.handler.codec.sockjs.SockJsConfig config()
Specified by:
config in interface org.jboss.aerogear.io.netty.handler.codec.sockjs.SockJsService

onOpen

public void onOpen(org.jboss.aerogear.io.netty.handler.codec.sockjs.SockJsSessionContext session)
Specified by:
onOpen in interface org.jboss.aerogear.io.netty.handler.codec.sockjs.SockJsService

onMessage

public void onMessage(String message)
               throws Exception
Specified by:
onMessage in interface org.jboss.aerogear.io.netty.handler.codec.sockjs.SockJsService
Throws:
Exception

onClose

public void onClose()
Specified by:
onClose in interface org.jboss.aerogear.io.netty.handler.codec.sockjs.SockJsService

AeroGear SimplePush Server Netty 0.11.0

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