org.atmosphere.container
Class JBossWebCometSupport
java.lang.Object
org.atmosphere.cpr.AsynchronousProcessor
org.atmosphere.container.JBossWebCometSupport
- All Implemented Interfaces:
- AsyncSupport<AtmosphereResourceImpl>
public class JBossWebCometSupport
- extends AsynchronousProcessor
Comet Portable Runtime implementation on top of Tomcat AIO.
- Author:
- Jeanfrancois Arcand
| Methods inherited from class org.atmosphere.cpr.AsynchronousProcessor |
destroyResource, getContainerName, init, map, map, resumed, shutdown, supportSession, supportWebSocket, suspended, timedout |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HTTP_EVENT
public static final String HTTP_EVENT
- See Also:
- Constant Field Values
JBossWebCometSupport
public JBossWebCometSupport(AtmosphereConfig config)
service
public Action service(AtmosphereRequest req,
AtmosphereResponse res)
throws IOException,
javax.servlet.ServletException
- Invoked by the Tomcat AIO when a Comet request gets detected.
- Parameters:
req - the AtmosphereRequestres - the AtmosphereResponse
- Returns:
- the
Action that was manipulated by the AtmosphereHandler
- Throws:
IOException
javax.servlet.ServletException
cancelled
public Action cancelled(AtmosphereRequest req,
AtmosphereResponse res)
throws IOException,
javax.servlet.ServletException
- Description copied from class:
AsynchronousProcessor
- All proprietary Comet based
Servlet must invoke the cancelled
method when the underlying WebServer detect that the client closed
the connection.
- Overrides:
cancelled in class AsynchronousProcessor
- Parameters:
req - the AtmosphereRequestres - the AtmosphereResponse
- Returns:
- action the Action operation.
- Throws:
IOException
javax.servlet.ServletException
action
public void action(AtmosphereResourceImpl actionEvent)
- 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:
actionEvent - An instance of Action
Copyright © 2012. All Rights Reserved.