Package org.atmosphere.container
Class Tomcat7Servlet30SupportWithWebSocket
- java.lang.Object
-
- org.atmosphere.cpr.AsynchronousProcessor
-
- org.atmosphere.container.Servlet30CometSupport
-
- org.atmosphere.container.Tomcat7Servlet30SupportWithWebSocket
-
- All Implemented Interfaces:
TomcatWebSocketUtil.Delegate,AsyncSupport<AtmosphereResourceImpl>
public class Tomcat7Servlet30SupportWithWebSocket extends Servlet30CometSupport implements TomcatWebSocketUtil.Delegate
Tomcat's WebSocket support. This code has been adapted fromWebSocketServlet
-
-
Field Summary
-
Fields inherited from class org.atmosphere.cpr.AsynchronousProcessor
cancelledAction, config, timedoutAction
-
-
Constructor Summary
Constructors Constructor Description Tomcat7Servlet30SupportWithWebSocket(AtmosphereConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActiondoService(AtmosphereRequest req, AtmosphereResponse res)Actionservice(AtmosphereRequest req, AtmosphereResponse res)booleansupportWebSocket()Return true if this implementation supports the websocket protocol.-
Methods inherited from class org.atmosphere.container.Servlet30CometSupport
action, cancelled, complete, endAsyncContext, getContainerName
-
Methods inherited from class org.atmosphere.cpr.AsynchronousProcessor
allowSessionTimeoutRemoval, completeLifecycle, endRequest, init, invokeAtmosphereHandler, invokeInterceptors, map, postInterceptors, resumed, shutdown, supportSession, suspended, timedout
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.atmosphere.container.TomcatWebSocketUtil.Delegate
suspended
-
-
-
-
Constructor Detail
-
Tomcat7Servlet30SupportWithWebSocket
public Tomcat7Servlet30SupportWithWebSocket(AtmosphereConfig config)
-
-
Method Detail
-
service
public Action service(AtmosphereRequest req, AtmosphereResponse res) throws java.io.IOException, javax.servlet.ServletException
Description copied from interface:AsyncSupport- Specified by:
servicein interfaceAsyncSupport<AtmosphereResourceImpl>- Overrides:
servicein classServlet30CometSupport- Parameters:
req- theAtmosphereRequestres- theAtmosphereResponse- Returns:
- the
Actionthat was manipulated by theAtmosphereHandler - Throws:
java.io.IOExceptionjavax.servlet.ServletException
-
doService
public Action doService(AtmosphereRequest req, AtmosphereResponse res) throws java.io.IOException, javax.servlet.ServletException
- Specified by:
doServicein interfaceTomcatWebSocketUtil.Delegate- Throws:
java.io.IOExceptionjavax.servlet.ServletException
-
supportWebSocket
public boolean supportWebSocket()
Description copied from interface:AsyncSupportReturn true if this implementation supports the websocket protocol.- Specified by:
supportWebSocketin interfaceAsyncSupport<AtmosphereResourceImpl>- Overrides:
supportWebSocketin classAsynchronousProcessor- Returns:
- true if supported
-
-