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, id, publishedQueue, publishedQueueLock, publisher, receivedQueue, receivedQueueLock, receiver, sessionId, subscriptions |
| 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 |
TomcatWebSocketChannel
public TomcatWebSocketChannel(Gravity gravity,
String id,
TomcatWebSocketChannelFactory factory,
ServletContext servletContext,
String clientType)
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