org.usergrid.websocket
Class WebSocketChannelHandler

java.lang.Object
  extended by org.jboss.netty.channel.SimpleChannelUpstreamHandler
      extended by org.usergrid.websocket.WebSocketChannelHandler
All Implemented Interfaces:
org.jboss.netty.channel.ChannelHandler, org.jboss.netty.channel.ChannelUpstreamHandler

public class WebSocketChannelHandler
extends org.jboss.netty.channel.SimpleChannelUpstreamHandler


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.netty.channel.ChannelHandler
org.jboss.netty.channel.ChannelHandler.Sharable
 
Constructor Summary
WebSocketChannelHandler(EntityManagerFactory emf, ServiceManagerFactory smf, ManagementService management, org.apache.shiro.mgt.SessionsSecurityManager securityManager, boolean ssl)
           
 
Method Summary
 void addSubscription(String path, org.jboss.netty.channel.Channel channel)
           
 void channelDisconnected(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ChannelStateEvent e)
           
 void exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ExceptionEvent e)
           
 EntityManagerFactory getEmf()
           
 ManagementService getOrganizations()
           
 org.apache.shiro.mgt.SessionsSecurityManager getSecurityManager()
           
 ServiceManagerFactory getSmf()
           
 org.jboss.netty.channel.group.ChannelGroup getSubscriptionGroup(String path)
           
 void messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.MessageEvent e)
           
 void removeSubscription(String path, org.jboss.netty.channel.Channel channel)
           
 
Methods inherited from class org.jboss.netty.channel.SimpleChannelUpstreamHandler
channelBound, channelClosed, channelConnected, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, handleUpstream, writeComplete
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebSocketChannelHandler

public WebSocketChannelHandler(EntityManagerFactory emf,
                               ServiceManagerFactory smf,
                               ManagementService management,
                               org.apache.shiro.mgt.SessionsSecurityManager securityManager,
                               boolean ssl)
Method Detail

getEmf

public EntityManagerFactory getEmf()

getSmf

public ServiceManagerFactory getSmf()

getOrganizations

public ManagementService getOrganizations()

getSecurityManager

public org.apache.shiro.mgt.SessionsSecurityManager getSecurityManager()

exceptionCaught

public void exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx,
                            org.jboss.netty.channel.ExceptionEvent e)
Overrides:
exceptionCaught in class org.jboss.netty.channel.SimpleChannelUpstreamHandler

channelDisconnected

public void channelDisconnected(org.jboss.netty.channel.ChannelHandlerContext ctx,
                                org.jboss.netty.channel.ChannelStateEvent e)
                         throws Exception
Overrides:
channelDisconnected in class org.jboss.netty.channel.SimpleChannelUpstreamHandler
Throws:
Exception

messageReceived

public void messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx,
                            org.jboss.netty.channel.MessageEvent e)
                     throws Exception
Overrides:
messageReceived in class org.jboss.netty.channel.SimpleChannelUpstreamHandler
Throws:
Exception

addSubscription

public void addSubscription(String path,
                            org.jboss.netty.channel.Channel channel)

removeSubscription

public void removeSubscription(String path,
                               org.jboss.netty.channel.Channel channel)

getSubscriptionGroup

public org.jboss.netty.channel.group.ChannelGroup getSubscriptionGroup(String path)


Copyright © 2013. All Rights Reserved.