org.atmosphere.container
Class Jetty7CometSupport
java.lang.Object
org.atmosphere.cpr.AsynchronousProcessor
org.atmosphere.container.Jetty7CometSupport
- All Implemented Interfaces:
- CometSupport<AtmosphereResourceImpl>
public class Jetty7CometSupport
- extends AsynchronousProcessor
- implements CometSupport<AtmosphereResourceImpl>
Comet Portable Runtime implementation on top of Jetty's Continuation.
- Author:
- Jeanfrancois Arcand
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Jetty7CometSupport
public Jetty7CometSupport(AtmosphereServlet.AtmosphereConfig config)
service
public AtmosphereServlet.Action service(HttpServletRequest req,
HttpServletResponse res)
throws IOException,
ServletException
- Serve the
HttpServletRequest and the HttpServletResponse and return
the appropriate AtmosphereServlet.Action.
- Specified by:
service in interface CometSupport<AtmosphereResourceImpl>
- Parameters:
req - the HttpServletRequestres - the HttpServletResponse
- Returns:
- the
AtmosphereServlet.Action that was manipulated by the AtmosphereHandler
- Throws:
IOException
ServletException
action
public void action(AtmosphereResourceImpl actionEvent)
- Process an
AtmosphereServlet.Action from an ActionEvent operation like suspend, resume or timed out.
- Specified by:
action in interface CometSupport<AtmosphereResourceImpl>- Overrides:
action in class AsynchronousProcessor
- Parameters:
actionEvent - An instance of AtmosphereServlet.Action
Copyright © 2010 SUN Microsystems. All Rights Reserved.