Package org.atmosphere.container
Class Jetty7CometSupport
- java.lang.Object
-
- org.atmosphere.cpr.AsynchronousProcessor
-
- org.atmosphere.container.Jetty7CometSupport
-
- All Implemented Interfaces:
AsyncSupport<AtmosphereResourceImpl>
- Direct Known Subclasses:
JettyAsyncSupportWithWebSocket
public class Jetty7CometSupport extends AsynchronousProcessor
Comet Portable Runtime implementation on top of Jetty's Continuation.- Author:
- Jeanfrancois Arcand
-
-
Field Summary
-
Fields inherited from class org.atmosphere.cpr.AsynchronousProcessor
cancelledAction, config, timedoutAction
-
-
Constructor Summary
Constructors Constructor Description Jetty7CometSupport(AtmosphereConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaction(AtmosphereResourceImpl r)Process anActionfrom anActionEventoperation like suspend, resume or timed out.AsyncSupport<AtmosphereResourceImpl>complete(AtmosphereResourceImpl r)Complete and close the connection associated with an implementation ofAtmosphereResourceprotected org.eclipse.jetty.continuation.ContinuationgetContinuation(AtmosphereRequest req)Actionservice(AtmosphereRequest req, AtmosphereResponse res)-
Methods inherited from class org.atmosphere.cpr.AsynchronousProcessor
allowSessionTimeoutRemoval, cancelled, completeLifecycle, endRequest, getContainerName, init, invokeAtmosphereHandler, invokeInterceptors, map, postInterceptors, resumed, shutdown, supportSession, supportWebSocket, suspended, timedout
-
-
-
-
Constructor Detail
-
Jetty7CometSupport
public Jetty7CometSupport(AtmosphereConfig config)
-
-
Method Detail
-
service
public Action service(AtmosphereRequest req, AtmosphereResponse res) throws java.io.IOException, javax.servlet.ServletException
Description copied from interface:AsyncSupport- Parameters:
req- theAtmosphereRequestres- theAtmosphereResponse- Returns:
- the
Actionthat was manipulated by theAtmosphereHandler - Throws:
java.io.IOExceptionjavax.servlet.ServletException
-
getContinuation
protected org.eclipse.jetty.continuation.Continuation getContinuation(AtmosphereRequest req)
-
action
public void action(AtmosphereResourceImpl r)
Description copied from interface:AsyncSupportProcess anActionfrom anActionEventoperation like suspend, resume or timed out.- Specified by:
actionin interfaceAsyncSupport<AtmosphereResourceImpl>- Overrides:
actionin classAsynchronousProcessor- Parameters:
r- An instance ofAction
-
complete
public AsyncSupport<AtmosphereResourceImpl> complete(AtmosphereResourceImpl r)
Description copied from interface:AsyncSupportComplete and close the connection associated with an implementation ofAtmosphereResource- Specified by:
completein interfaceAsyncSupport<AtmosphereResourceImpl>- Overrides:
completein classAsynchronousProcessor- Parameters:
r-AtmosphereResource- Returns:
- this
-
-