org.granite.gravity.tomcat
Class TomcatWebSocketChannel
java.lang.Object
org.granite.gravity.AbstractChannel
org.granite.gravity.tomcat.TomcatWebSocketChannel
- All Implemented Interfaces:
- Channel
public class TomcatWebSocketChannel
- extends AbstractChannel
| Fields inherited from class org.granite.gravity.AbstractChannel |
clientType, factory, gravity, httpReceiver, id, publishedQueue, publishedQueueLock, publisher, receivedQueue, receivedQueueLock, sessionId, subscriptions, udpReceiver |
| 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 |
TomcatWebSocketChannel
public TomcatWebSocketChannel(Gravity gravity,
String id,
TomcatWebSocketChannelFactory factory,
String clientType)
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