org.usergrid.websocket
Class WebSocketChannelHandler
java.lang.Object
org.jboss.netty.channel.SimpleChannelUpstreamHandler
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 classes/interfaces inherited from interface org.jboss.netty.channel.ChannelHandler |
org.jboss.netty.channel.ChannelHandler.Sharable |
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 |
WebSocketChannelHandler
public WebSocketChannelHandler(EntityManagerFactory emf,
ServiceManagerFactory smf,
ManagementService management,
org.apache.shiro.mgt.SessionsSecurityManager securityManager,
boolean ssl)
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.