public class Grizzly2CometSupport extends AsynchronousProcessor
AsynchronousProcessor.AsynchronousProcessorHookaliveRequests, cancelledAction, config, timedoutAction| Constructor and Description |
|---|
Grizzly2CometSupport(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. |
void |
init(javax.servlet.ServletConfig sc)
Init Grizzly's
CometContext that will be used to suspend and
resume the response. |
Action |
service(AtmosphereRequest req,
AtmosphereResponse res)
|
completeLifecycle, getContainerName, invokeAtmosphereHandler, map, map, resumed, shutdown, supportSession, supportWebSocket, suspended, timedout, trackActiveRequestpublic Grizzly2CometSupport(AtmosphereConfig config)
public void init(javax.servlet.ServletConfig sc)
throws javax.servlet.ServletException
CometContext that will be used to suspend and
resume the response.init in interface AsyncSupport<AtmosphereResourceImpl>init in class AsynchronousProcessorsc - the ServletContextjavax.servlet.ServletExceptionpublic 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 void action(AtmosphereResourceImpl r)
Action 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.