public class Servlet30CometSupport extends AsynchronousProcessor
AtmosphereFramework detect the container
detect Servlet 3.0 Asynch API.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. |
AsyncSupport |
complete(AtmosphereResourceImpl r)
Complete and close the connection associated with an implementation of
AtmosphereResource |
void |
endAsyncContext(AtmosphereRequest request) |
String |
getContainerName()
Return "javax.servlet".
|
Action |
service(AtmosphereRequest request,
AtmosphereResponse response)
|
allowSessionTimeoutRemoval, completeLifecycle, endRequest, init, invokeAtmosphereHandler, invokeInterceptors, map, postInterceptors, resumed, shutdown, supportSession, supportWebSocket, suspended, timedoutpublic Servlet30CometSupport(AtmosphereConfig config)
public String getContainerName()
getContainerName in interface AsyncSupport<AtmosphereResourceImpl>getContainerName in class AsynchronousProcessorpublic Action service(AtmosphereRequest request, AtmosphereResponse response) throws IOException, javax.servlet.ServletException
AsyncSupportrequest - the AtmosphereRequestresponse - the AtmosphereResponseAction that was manipulated by the AtmosphereHandlerIOExceptionjavax.servlet.ServletExceptionpublic 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 Actionpublic AsyncSupport complete(AtmosphereResourceImpl r)
AsyncSupportAtmosphereResourcecomplete in interface AsyncSupport<AtmosphereResourceImpl>complete in class AsynchronousProcessorr - AtmosphereResourcepublic void endAsyncContext(AtmosphereRequest request)
public Action cancelled(AtmosphereRequest req, AtmosphereResponse res) throws 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 AtmosphereResponseIOExceptionjavax.servlet.ServletExceptionCopyright © 2016. All rights reserved.