|
||||||||||
| 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.Servlet30CometSupport
public class Servlet30CometSupport
This class is used when the AtmosphereFramework detect the container
detect Servlet 3.0 Asynch API.
| Field Summary |
|---|
| Fields inherited from class org.atmosphere.cpr.AsynchronousProcessor |
|---|
cancelledAction, config, timedoutAction |
| Constructor Summary | |
|---|---|
Servlet30CometSupport(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 |
endAsyncContext(AtmosphereRequest request)
|
String |
getContainerName()
Return "javax.servlet". |
Action |
service(AtmosphereRequest request,
AtmosphereResponse response)
Serve the AtmosphereRequest and the AtmosphereResponse and return
the appropriate Action. |
| Methods inherited from class org.atmosphere.cpr.AsynchronousProcessor |
|---|
allowSessionTimeoutRemoval, completeLifecycle, endRequest, init, 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 Servlet30CometSupport(AtmosphereConfig config)
| Method Detail |
|---|
public String getContainerName()
getContainerName in interface AsyncSupport<AtmosphereResourceImpl>getContainerName in class AsynchronousProcessor
public Action service(AtmosphereRequest request,
AtmosphereResponse response)
throws IOException,
javax.servlet.ServletException
AsyncSupportAtmosphereRequest and the AtmosphereResponse and return
the appropriate Action.
request - the AtmosphereRequestresponse - 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 void endAsyncContext(AtmosphereRequest request)
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 | |||||||||