Package org.atmosphere.container
Class JBossAsyncSupportWithWebSocket
- java.lang.Object
-
- org.atmosphere.cpr.AsynchronousProcessor
-
- org.atmosphere.container.JBossWebCometSupport
-
- org.atmosphere.container.JBossAsyncSupportWithWebSocket
-
- All Implemented Interfaces:
AsyncSupport<AtmosphereResourceImpl>
public class JBossAsyncSupportWithWebSocket extends JBossWebCometSupport
JBoss's WebSocket support. This code has been adapted fromTomcat7AsyncSupportWithWebSocketandTomcatWebSocketUtil
-
-
Field Summary
-
Fields inherited from class org.atmosphere.container.JBossWebCometSupport
HTTP_EVENT
-
Fields inherited from class org.atmosphere.cpr.AsynchronousProcessor
cancelledAction, config, timedoutAction
-
-
Constructor Summary
Constructors Constructor Description JBossAsyncSupportWithWebSocket(AtmosphereConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispatch(org.jboss.servlet.http.HttpEvent httpEvent)ActiondoService(AtmosphereRequest req, AtmosphereResponse res)Actionservice(AtmosphereRequest req, AtmosphereResponse res)Invoked by the Tomcat AIO when a Comet request gets detected.booleansupportWebSocket()Return true if this implementation supports the websocket protocol.-
Methods inherited from class org.atmosphere.container.JBossWebCometSupport
action, cancelled, complete
-
Methods inherited from class org.atmosphere.cpr.AsynchronousProcessor
allowSessionTimeoutRemoval, completeLifecycle, endRequest, getContainerName, init, invokeAtmosphereHandler, invokeInterceptors, map, postInterceptors, resumed, shutdown, supportSession, suspended, timedout
-
-
-
-
Constructor Detail
-
JBossAsyncSupportWithWebSocket
public JBossAsyncSupportWithWebSocket(AtmosphereConfig config)
-
-
Method Detail
-
service
public Action service(AtmosphereRequest req, AtmosphereResponse res) throws java.io.IOException, javax.servlet.ServletException
Description copied from class:JBossWebCometSupportInvoked by the Tomcat AIO when a Comet request gets detected.- Specified by:
servicein interfaceAsyncSupport<AtmosphereResourceImpl>- Overrides:
servicein classJBossWebCometSupport- Parameters:
req- theAtmosphereRequestres- theAtmosphereResponse- Returns:
- the
Actionthat was manipulated by theAtmosphereHandler - Throws:
java.io.IOExceptionjavax.servlet.ServletException
-
doService
public Action doService(AtmosphereRequest req, AtmosphereResponse res) throws java.io.IOException, javax.servlet.ServletException
- Throws:
java.io.IOExceptionjavax.servlet.ServletException
-
supportWebSocket
public boolean supportWebSocket()
Description copied from interface:AsyncSupportReturn true if this implementation supports the websocket protocol.- Specified by:
supportWebSocketin interfaceAsyncSupport<AtmosphereResourceImpl>- Overrides:
supportWebSocketin classAsynchronousProcessor- Returns:
- true if supported
-
dispatch
public void dispatch(org.jboss.servlet.http.HttpEvent httpEvent) throws java.io.IOException, javax.servlet.ServletException- Throws:
java.io.IOExceptionjavax.servlet.ServletException
-
-