org.atmosphere.container
Class Servlet30CometSupport

java.lang.Object
  extended by org.atmosphere.cpr.AsynchronousProcessor
      extended by org.atmosphere.container.Servlet30CometSupport
All Implemented Interfaces:
AsyncSupport<AtmosphereResourceImpl>
Direct Known Subclasses:
JettyServlet30AsyncSupportWithWebSocket, Tomcat7Servlet30SupportWithWebSocket

public class Servlet30CometSupport
extends AsynchronousProcessor

This class gets used when the AtmosphereFramework detect the container detect Servlet 3.0 Asynch API.

Author:
Jeanfrancois Arcand

Nested Class Summary
 
Nested classes/interfaces inherited from class org.atmosphere.cpr.AsynchronousProcessor
AsynchronousProcessor.AsynchronousProcessorHook
 
Field Summary
 
Fields inherited from class org.atmosphere.cpr.AsynchronousProcessor
aliveRequests, cancelledAction, config, timedoutAction
 
Constructor Summary
Servlet30CometSupport(AtmosphereConfig config)
           
 
Method Summary
 void action(AtmosphereResourceImpl actionEvent)
          Process an Action from an ActionEvent operation like suspend, resume or timed out.
 String getContainerName()
          Return "javax.servlet".
 Action service(AtmosphereRequest request, AtmosphereResponse response)
          Serve the AtmosphereRequest and the AtmosphereResponse and return the appropriate Action.
 
Methods inherited from class org.atmosphere.cpr.AsynchronousProcessor
cancelled, 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
 

Constructor Detail

Servlet30CometSupport

public Servlet30CometSupport(AtmosphereConfig config)
Method Detail

getContainerName

public String getContainerName()
Return "javax.servlet".

Specified by:
getContainerName in interface AsyncSupport<AtmosphereResourceImpl>
Overrides:
getContainerName in class AsynchronousProcessor
Returns:
"javax.servlet"

service

public Action service(AtmosphereRequest request,
                      AtmosphereResponse response)
               throws IOException,
                      javax.servlet.ServletException
Serve the AtmosphereRequest and the AtmosphereResponse and return the appropriate Action.

Parameters:
request - the AtmosphereRequest
response - the AtmosphereResponse
Returns:
the Action that was manipulated by the AtmosphereHandler
Throws:
IOException
javax.servlet.ServletException

action

public void action(AtmosphereResourceImpl actionEvent)
Process an 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 Action


Copyright © 2013. All Rights Reserved.