public class JettyCometSupport extends AsynchronousProcessor
AsynchronousProcessor.AsynchronousProcessorHookaliveRequests, cancelledAction, config, timedoutAction| Constructor and Description |
|---|
JettyCometSupport(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. |
Action |
service(AtmosphereRequest req,
AtmosphereResponse response)
|
completeLifecycle, getContainerName, init, invokeAtmosphereHandler, map, resumed, shutdown, supportSession, supportWebSocket, suspended, timedout, trackActiveRequestpublic JettyCometSupport(AtmosphereConfig config)
public Action service(AtmosphereRequest req, AtmosphereResponse response) throws java.io.IOException, javax.servlet.ServletException
AsyncSupportreq - the AtmosphereRequestresponse - the AtmosphereResponseAction that was manipulated by the AtmosphereHandlerjava.io.IOExceptionjavax.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 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.ServletExceptionCopyright © 2018. All Rights Reserved.