|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.atmosphere.cpr.AsynchronousProcessor
org.atmosphere.container.GrizzlyCometSupport
public class GrizzlyCometSupport
Comet Portable Runtime implementation on top of Grizzly 1.5 and up.
| Field Summary |
|---|
| Fields inherited from class org.atmosphere.cpr.AsynchronousProcessor |
|---|
cancelledAction, config, timedoutAction |
| Constructor Summary | |
|---|---|
GrizzlyCometSupport(AtmosphereConfig config)
|
|
| Method Summary | |
|---|---|
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)
Serve the AtmosphereRequest and the AtmosphereResponse and return
the appropriate Action. |
| Methods inherited from class org.atmosphere.cpr.AsynchronousProcessor |
|---|
allowSessionTimeoutRemoval, completeLifecycle, endRequest, getContainerName, invokeAtmosphereHandler, invokeInterceptors, map, postInterceptors, resumed, shutdown, supportSession, supportWebSocket, suspended, timedout |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GrizzlyCometSupport(AtmosphereConfig config)
| Method Detail |
|---|
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 ServletContext
javax.servlet.ServletException
public Action service(AtmosphereRequest req,
AtmosphereResponse res)
throws IOException,
javax.servlet.ServletException
AsyncSupportAtmosphereRequest and the AtmosphereResponse and return
the appropriate Action.
req - the AtmosphereRequestres - the AtmosphereResponse
Action that was manipulated by the AtmosphereHandler
IOException
javax.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 AsyncSupport complete(AtmosphereResourceImpl r)
AsyncSupportAtmosphereResource
complete in interface AsyncSupport<AtmosphereResourceImpl>complete in class AsynchronousProcessorr - AtmosphereResource
public Action cancelled(AtmosphereRequest req,
AtmosphereResponse res)
throws 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 AtmosphereResponse
IOException
javax.servlet.ServletException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||