public class GlassFishv2CometSupport extends AsynchronousProcessor
cancelledAction, config, timedoutAction
Constructor and Description |
---|
GlassFishv2CometSupport(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 |
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)
|
allowSessionTimeoutRemoval, completeLifecycle, endRequest, getContainerName, invokeAtmosphereHandler, invokeInterceptors, map, postInterceptors, resumed, shutdown, supportSession, supportWebSocket, suspended, timedout
public 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 AsynchronousProcessor
sc
- the ServletContext
javax.servlet.ServletException
public Action service(AtmosphereRequest req, AtmosphereResponse res) throws IOException, javax.servlet.ServletException
req
- the AtmosphereRequest
res
- the AtmosphereResponse
Action
that was manipulated by the AtmosphereHandler
IOException
javax.servlet.ServletException
public void action(AtmosphereResourceImpl r)
AsyncSupport
Action
from an ActionEvent
operation like suspend, resume or timed out.action
in interface AsyncSupport<AtmosphereResourceImpl>
action
in class AsynchronousProcessor
r
- An instance of Action
public AsyncSupport complete(AtmosphereResourceImpl r)
AsyncSupport
AtmosphereResource
complete
in interface AsyncSupport<AtmosphereResourceImpl>
complete
in class AsynchronousProcessor
r
- AtmosphereResource
public Action cancelled(AtmosphereRequest req, AtmosphereResponse res) throws IOException, javax.servlet.ServletException
AsynchronousProcessor
Servlet
must invoke the cancelled method when the underlying WebServer
detect that the client closed the connection.cancelled
in class AsynchronousProcessor
req
- the AtmosphereRequest
res
- the AtmosphereResponse
IOException
javax.servlet.ServletException
Copyright © 2016. All rights reserved.