public class Tomcat7AsyncSupportWithWebSocket extends Tomcat7CometSupport implements TomcatWebSocketUtil.Delegate
WebSocketServlet
COMET_EVENT
cancelledAction, config, timedoutAction
Constructor and Description |
---|
Tomcat7AsyncSupportWithWebSocket(AtmosphereConfig config) |
Modifier and Type | Method and Description |
---|---|
Action |
doService(AtmosphereRequest req,
AtmosphereResponse res) |
Action |
service(AtmosphereRequest req,
AtmosphereResponse res)
Invoked by the Tomcat AIO when a Comet request gets detected.
|
boolean |
supportWebSocket()
Return true if this implementation supports the websocket protocol.
|
action, cancelled, complete
allowSessionTimeoutRemoval, completeLifecycle, endRequest, getContainerName, init, invokeAtmosphereHandler, invokeInterceptors, map, postInterceptors, resumed, shutdown, supportSession, suspended, timedout
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
suspended
public Tomcat7AsyncSupportWithWebSocket(AtmosphereConfig config)
public Action service(AtmosphereRequest req, AtmosphereResponse res) throws IOException, javax.servlet.ServletException
Tomcat7CometSupport
service
in interface AsyncSupport<AtmosphereResourceImpl>
service
in class Tomcat7CometSupport
req
- the AtmosphereRequest
res
- the AtmosphereResponse
Action
that was manipulated by the AtmosphereHandler
IOException
javax.servlet.ServletException
public Action doService(AtmosphereRequest req, AtmosphereResponse res) throws IOException, javax.servlet.ServletException
doService
in interface TomcatWebSocketUtil.Delegate
IOException
javax.servlet.ServletException
public boolean supportWebSocket()
AsyncSupport
supportWebSocket
in interface AsyncSupport<AtmosphereResourceImpl>
supportWebSocket
in class AsynchronousProcessor
Copyright © 2016. All rights reserved.