org.atmosphere.container
Class Jetty7CometSupport
java.lang.Object
org.atmosphere.cpr.AsynchronousProcessor
org.atmosphere.container.Jetty7CometSupport
- All Implemented Interfaces:
- CometSupport<AtmosphereResourceImpl>
- Direct Known Subclasses:
- JettyCometSupportWithWebSocket
public class Jetty7CometSupport
- extends AsynchronousProcessor
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(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws IOException,
javax.servlet.ServletException
- Serve the
HttpServletRequest and the HttpServletResponse and return
the appropriate AtmosphereServlet.Action.
- Parameters:
req - the HttpServletRequestres - the HttpServletResponse
- Returns:
- the
AtmosphereServlet.Action that was manipulated by the AtmosphereHandler
- Throws:
IOException
javax.servlet.ServletException
resumed
public AtmosphereServlet.Action resumed(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException,
javax.servlet.ServletException
- Description copied from class:
AsynchronousProcessor
- All proprietary Comet based
Servlet must invoke the resume
method when the Atmosphere's application decide to resume the HttpServletResponse.
The returned value, of type
AtmosphereServlet.Action, tells the proprietary Comet Servlet
to resume (again), suspended or do nothing with the current HttpServletResponse.
- Overrides:
resumed in class AsynchronousProcessor
- Parameters:
request - the HttpServletRequestresponse - the HttpServletResponse
- Returns:
- action the Action operation.
- Throws:
IOException
javax.servlet.ServletException
action
public void action(AtmosphereResourceImpl r)
- 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:
r - An instance of AtmosphereServlet.Action
Copyright © 2012. All Rights Reserved.