org.atmosphere.container
Class Jetty7CometSupport
java.lang.Object
org.atmosphere.cpr.AsynchronousProcessor
org.atmosphere.container.Jetty7CometSupport
- All Implemented Interfaces:
- AsyncSupport<AtmosphereResourceImpl>
- Direct Known Subclasses:
- Jetty9AsyncSupportWithWebSocket, JettyAsyncSupportWithWebSocket
public class Jetty7CometSupport
- extends AsynchronousProcessor
Comet Portable Runtime implementation on top of Jetty's Continuation.
- Author:
- Jeanfrancois Arcand
| Methods inherited from class org.atmosphere.cpr.AsynchronousProcessor |
cancelled, completeLifecycle, getContainerName, init, invokeAtmosphereHandler, map, map, resumed, shutdown, supportSession, supportWebSocket, suspended, timedout, trackActiveRequest |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Jetty7CometSupport
public Jetty7CometSupport(AtmosphereConfig config)
service
public Action service(AtmosphereRequest req,
AtmosphereResponse res)
throws IOException,
javax.servlet.ServletException
- Serve the
AtmosphereRequest and the AtmosphereResponse and return
the appropriate Action.
- Parameters:
req - the AtmosphereRequestres - the AtmosphereResponse
- Returns:
- the
Action that was manipulated by the AtmosphereHandler
- Throws:
IOException
javax.servlet.ServletException
getContinuation
protected org.eclipse.jetty.continuation.Continuation getContinuation(AtmosphereRequest req)
action
public void action(AtmosphereResourceImpl r)
- Process an
Action from an ActionEvent operation like suspend, resume or timed out.
- Specified by:
action in interface AsyncSupport<AtmosphereResourceImpl>- Overrides:
action in class AsynchronousProcessor
- Parameters:
r - An instance of Action
Copyright © 2013. All Rights Reserved.