org.granite.gravity.tomcat
Class TomcatWebSocketChannel

java.lang.Object
  extended by org.granite.gravity.AbstractChannel
      extended by org.granite.gravity.tomcat.TomcatWebSocketChannel
All Implemented Interfaces:
Channel

public class TomcatWebSocketChannel
extends AbstractChannel


Nested Class Summary
 class TomcatWebSocketChannel.MessageInboundImpl
           
 
Field Summary
 
Fields inherited from class org.granite.gravity.AbstractChannel
clientType, factory, gravity, id, publishedQueue, publishedQueueLock, publisher, receivedQueue, receivedQueueLock, receiver, sessionId, subscriptions
 
Constructor Summary
TomcatWebSocketChannel(Gravity gravity, String id, TomcatWebSocketChannelFactory factory, ServletContext servletContext, String clientType)
           
 
Method Summary
protected  AsyncHttpContext acquireAsyncHttpContext()
           
 void close()
           
 void destroy()
           
 org.apache.catalina.websocket.StreamInbound getStreamInbound()
           
protected  boolean hasAsyncHttpContext()
           
protected  void releaseAsyncHttpContext(AsyncHttpContext context)
           
 boolean runReceived(AsyncHttpContext asyncHttpContext)
           
 void setConnectAckMessage(Message ackMessage)
           
 
Methods inherited from class org.granite.gravity.AbstractChannel
addSubscription, equals, getClientType, getFactory, getGravity, getId, getSerializerContentType, getSubscriptions, hashCode, hasPublishedMessage, hasReceivedMessage, newSerializer, publish, queueReceiver, receive, removeSubscription, runPublish, runReceive, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TomcatWebSocketChannel

public TomcatWebSocketChannel(Gravity gravity,
                              String id,
                              TomcatWebSocketChannelFactory factory,
                              ServletContext servletContext,
                              String clientType)
Method Detail

setConnectAckMessage

public void setConnectAckMessage(Message ackMessage)

getStreamInbound

public org.apache.catalina.websocket.StreamInbound getStreamInbound()

runReceived

public boolean runReceived(AsyncHttpContext asyncHttpContext)
Specified by:
runReceived in interface Channel
Overrides:
runReceived in class AbstractChannel

destroy

public void destroy()
Specified by:
destroy in interface Channel
Overrides:
destroy in class AbstractChannel

close

public void close()

hasAsyncHttpContext

protected boolean hasAsyncHttpContext()
Specified by:
hasAsyncHttpContext in class AbstractChannel

releaseAsyncHttpContext

protected void releaseAsyncHttpContext(AsyncHttpContext context)
Specified by:
releaseAsyncHttpContext in class AbstractChannel

acquireAsyncHttpContext

protected AsyncHttpContext acquireAsyncHttpContext()
Specified by:
acquireAsyncHttpContext in class AbstractChannel