org.atmosphere.container
Class Servlet30CometSupport
java.lang.Object
org.atmosphere.cpr.AsynchronousProcessor
org.atmosphere.container.Servlet30CometSupport
- All Implemented Interfaces:
- AsyncSupport<AtmosphereResourceImpl>
- Direct Known Subclasses:
- Servlet30AsyncSupportWithWebSocket, Tomcat7AsyncSupportWithWebSocket
public class Servlet30CometSupport
- extends AsynchronousProcessor
This class gets used when the AtmosphereFramework detect the container
detect Servlet 3.0 Asynch API.
- Author:
- Jeanfrancois Arcand
| Methods inherited from class org.atmosphere.cpr.AsynchronousProcessor |
cancelled, destroyResource, init, map, map, resumed, shutdown, supportSession, supportWebSocket, suspended, timedout |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Servlet30CometSupport
public Servlet30CometSupport(AtmosphereConfig config)
getContainerName
public String getContainerName()
- Return "javax.servlet".
- Specified by:
getContainerName in interface AsyncSupport<AtmosphereResourceImpl>- Overrides:
getContainerName in class AsynchronousProcessor
- Returns:
- "javax.servlet"
service
public AtmosphereFramework.Action service(AtmosphereRequest request,
AtmosphereResponse response)
throws IOException,
javax.servlet.ServletException
- Serve the
AtmosphereRequest and the AtmosphereResponse and return
the appropriate AtmosphereFramework.Action.
- Parameters:
request - the AtmosphereRequestresponse - the AtmosphereResponse
- Returns:
- the
AtmosphereFramework.Action that was manipulated by the AtmosphereHandler
- Throws:
IOException
javax.servlet.ServletException
action
public void action(AtmosphereResourceImpl actionEvent)
- Process an
AtmosphereFramework.Action from an ActionEvent operation like suspend, resume or timed out.
- Specified by:
action in interface AsyncSupport<AtmosphereResourceImpl>- Overrides:
action in class AsynchronousProcessor
- Parameters:
actionEvent - An instance of AtmosphereFramework.Action
Copyright © 2012. All Rights Reserved.