public class Servlet30CometSupport extends AsynchronousProcessor
AtmosphereFramework detect the container
detect Servlet 3.0 Asynch API.AsynchronousProcessor.AsynchronousProcessorHookaliveRequests, cancelledAction, config, timedoutAction| Constructor and Description |
|---|
Servlet30CometSupport(AtmosphereConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
action(AtmosphereResourceImpl r)
Process an
Action from an ActionEvent operation like suspend, resume or timed out. |
Action |
cancelled(AtmosphereRequest req,
AtmosphereResponse res)
All proprietary Comet based
Servlet must invoke the cancelled method when the underlying WebServer
detect that the client closed the connection. |
static void |
endAsyncContext(AtmosphereRequest request) |
java.lang.String |
getContainerName()
Return "javax.servlet".
|
Action |
service(AtmosphereRequest request,
AtmosphereResponse response)
|
completeLifecycle, init, invokeAtmosphereHandler, map, resumed, shutdown, supportSession, supportWebSocket, suspended, timedout, trackActiveRequestpublic Servlet30CometSupport(AtmosphereConfig config)
public java.lang.String getContainerName()
getContainerName in interface AsyncSupport<AtmosphereResourceImpl>getContainerName in class AsynchronousProcessorpublic Action service(AtmosphereRequest request, AtmosphereResponse response) throws java.io.IOException, javax.servlet.ServletException
AsyncSupportrequest - the AtmosphereRequestresponse - the AtmosphereResponseAction that was manipulated by the AtmosphereHandlerjava.io.IOExceptionjavax.servlet.ServletExceptionpublic Action cancelled(AtmosphereRequest req, AtmosphereResponse res) throws java.io.IOException, javax.servlet.ServletException
AsynchronousProcessorServlet must invoke the cancelled method when the underlying WebServer
detect that the client closed the connection.cancelled in class AsynchronousProcessorreq - the AtmosphereRequestres - the AtmosphereResponsejava.io.IOExceptionjavax.servlet.ServletExceptionpublic static void endAsyncContext(AtmosphereRequest request)
public void action(AtmosphereResourceImpl r)
AsyncSupportAction from an ActionEvent operation like suspend, resume or timed out.action in interface AsyncSupport<AtmosphereResourceImpl>action in class AsynchronousProcessorr - An instance of ActionCopyright © 2018. All Rights Reserved.