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, httpReceiver, id, publishedQueue, publishedQueueLock, publisher, receivedQueue, receivedQueueLock, sessionId, subscriptions, udpReceiver
 
Constructor Summary
TomcatWebSocketChannel(Gravity gravity, String id, TomcatWebSocketChannelFactory factory, String clientType)
           
 
Method Summary
protected  AsyncHttpContext acquireAsyncHttpContext()
           
 void close()
           
 void destroy()
           
 ContentType getContentType()
           
 StreamInbound getStreamInbound()
           
protected  boolean hasAsyncHttpContext()
           
protected  void releaseAsyncHttpContext(AsyncHttpContext context)
           
 boolean runReceived(AsyncHttpContext asyncHttpContext)
           
 void setConnectAckMessage(Message ackMessage)
           
 void setContentType(ContentType contentType)
           
 void setSession(HttpSession session)
           
 
Methods inherited from class org.granite.gravity.AbstractChannel
addSubscription, createUdpReceiver, destroy, 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,
                              String clientType)
Method Detail

setSession

public void setSession(HttpSession session)

setConnectAckMessage

public void setConnectAckMessage(Message ackMessage)

getContentType

public ContentType getContentType()

setContentType

public void setContentType(ContentType contentType)

getStreamInbound

public StreamInbound getStreamInbound()

runReceived

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

destroy

public void destroy()
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