public class GlassFishv2CometSupport extends AsynchronousProcessor
AsynchronousProcessor.AsynchronousProcessorHookaliveRequests, cancelledAction, config, timedoutAction| Constructor and Description |
|---|
GlassFishv2CometSupport(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. |
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, resumed, shutdown, supportSession, supportWebSocket, suspended, timedout, trackActiveRequestpublic GlassFishv2CometSupport(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 actionEvent)
AsyncSupportAction from an ActionEvent operation like suspend, resume or timed out.action in interface AsyncSupport<AtmosphereResourceImpl>action in class AsynchronousProcessoractionEvent - 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.