public class JBossWebCometSupport extends AsynchronousProcessor
AsynchronousProcessor.AsynchronousProcessorHook| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
HTTP_EVENT |
aliveRequests, cancelledAction, config, timedoutAction| Constructor and Description |
|---|
JBossWebCometSupport(AtmosphereConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
action(AtmosphereResourceImpl actionEvent)
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 res)
Invoked by the Tomcat AIO when a Comet request gets detected.
|
completeLifecycle, getContainerName, init, invokeAtmosphereHandler, map, map, resumed, shutdown, supportSession, supportWebSocket, suspended, timedout, trackActiveRequestpublic static final java.lang.String HTTP_EVENT
public JBossWebCometSupport(AtmosphereConfig config)
public Action service(AtmosphereRequest req, AtmosphereResponse res) throws java.io.IOException, javax.servlet.ServletException
req - the AtmosphereRequestres - 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 void action(AtmosphereResourceImpl actionEvent)
Action from an ActionEvent operation like suspend, resume or timed out.action in interface AsyncSupport<AtmosphereResourceImpl>action in class AsynchronousProcessoractionEvent - An instance of ActionCopyright © 2018. All Rights Reserved.