AeroGear SimplePush Server Netty 0.11.0

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

java.lang.Object
  extended by io.netty.channel.ChannelHandlerAdapter
      extended by io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
          extended by org.jboss.aerogear.simplepush.server.netty.SockJSChannelInitializer
All Implemented Interfaces:
io.netty.channel.ChannelHandler

public class SockJSChannelInitializer
extends io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>

The Netty ChannelInitializer for the SimplePush Server.


Nested Class Summary
 
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable, io.netty.channel.ChannelHandler.Skip
 
Constructor Summary
SockJSChannelInitializer(org.jboss.aerogear.simplepush.server.SimplePushServerConfig simplePushConfig, org.jboss.aerogear.simplepush.server.datastore.DataStore datastore, org.jboss.aerogear.io.netty.handler.codec.sockjs.SockJsConfig sockjsConfig, io.netty.util.concurrent.EventExecutorGroup backgroundGroup)
          Sole constructor.
 
Method Summary
protected  void initChannel(io.netty.channel.socket.SocketChannel socketChannel)
           
 
Methods inherited from class io.netty.channel.ChannelInitializer
channelRegistered
 
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
bind, channelActive, channelInactive, channelRead, channelReadComplete, channelWritabilityChanged, close, connect, disconnect, exceptionCaught, flush, handlerAdded, handlerRemoved, isSharable, read, userEventTriggered, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SockJSChannelInitializer

public SockJSChannelInitializer(org.jboss.aerogear.simplepush.server.SimplePushServerConfig simplePushConfig,
                                org.jboss.aerogear.simplepush.server.datastore.DataStore datastore,
                                org.jboss.aerogear.io.netty.handler.codec.sockjs.SockJsConfig sockjsConfig,
                                io.netty.util.concurrent.EventExecutorGroup backgroundGroup)
Sole constructor.

Parameters:
simplePushConfig - the SimplePushServerConfig configuration.
datastore - the DataStore to be passed to the SimplePushServiceFactory.
sockjsConfig - the SockJS SimplePushServerConfig.
backgroundGroup - an EventExecutorGroup to be used for the UserAgentReaperHandler.
Method Detail

initChannel

protected void initChannel(io.netty.channel.socket.SocketChannel socketChannel)
                    throws Exception
Specified by:
initChannel in class io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
Throws:
Exception

AeroGear SimplePush Server Netty 0.11.0

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