org.atmosphere.container
Class Tomcat7AsyncSupportWithWebSocket
java.lang.Object
org.atmosphere.cpr.AsynchronousProcessor
org.atmosphere.container.Tomcat7CometSupport
org.atmosphere.container.Tomcat7AsyncSupportWithWebSocket
- All Implemented Interfaces:
- TomcatWebSocketUtil.Delegate, AsyncSupport<AtmosphereResourceImpl>
public class Tomcat7AsyncSupportWithWebSocket
- extends Tomcat7CometSupport
- implements TomcatWebSocketUtil.Delegate
Tomcat's WebSocket support. This code has been adapted from WebSocketServlet
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Tomcat7AsyncSupportWithWebSocket
public Tomcat7AsyncSupportWithWebSocket(AtmosphereConfig config)
service
public Action service(AtmosphereRequest req,
AtmosphereResponse res)
throws IOException,
javax.servlet.ServletException
- Description copied from class:
Tomcat7CometSupport
- Invoked by the Tomcat AIO when a Comet request gets detected.
- Specified by:
service in interface AsyncSupport<AtmosphereResourceImpl>- Overrides:
service in class Tomcat7CometSupport
- Parameters:
req - the AtmosphereRequestres - the AtmosphereResponse
- Returns:
- the
Action that was manipulated by the AtmosphereHandler
- Throws:
IOException
javax.servlet.ServletException
doService
public Action doService(AtmosphereRequest req,
AtmosphereResponse res)
throws IOException,
javax.servlet.ServletException
- Specified by:
doService in interface TomcatWebSocketUtil.Delegate
- Throws:
IOException
javax.servlet.ServletException
supportWebSocket
public boolean supportWebSocket()
- Description copied from interface:
AsyncSupport
- Return true if this implementation supports the websocket protocol.
return true if supported
- Specified by:
supportWebSocket in interface AsyncSupport<AtmosphereResourceImpl>- Overrides:
supportWebSocket in class AsynchronousProcessor
Copyright © 2013. All Rights Reserved.