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>
JBoss's WebSocket support. This code has been adapted from
Tomcat7AsyncSupportWithWebSocket and
TomcatWebSocketUtil-
Field Summary
Fields inherited from class org.atmosphere.container.JBossWebCometSupport
HTTP_EVENTFields inherited from class org.atmosphere.cpr.AsynchronousProcessor
cancelledAction, config, timedoutAction -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispatch(org.jboss.servlet.http.HttpEvent httpEvent) doService(AtmosphereRequest req, AtmosphereResponse res) service(AtmosphereRequest req, AtmosphereResponse res) Invoked by the Tomcat AIO when a Comet request gets detected.booleanReturn true if this implementation supports the websocket protocol.Methods inherited from class org.atmosphere.container.JBossWebCometSupport
action, cancelled, completeMethods inherited from class org.atmosphere.cpr.AsynchronousProcessor
allowSessionTimeoutRemoval, completeLifecycle, endRequest, getContainerName, init, invokeAtmosphereHandler, invokeInterceptors, map, postInterceptors, resumed, shutdown, supportSession, suspended, timedout
-
Constructor Details
-
JBossAsyncSupportWithWebSocket
-
-
Method Details
-
service
public Action service(AtmosphereRequest req, AtmosphereResponse res) throws 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:
IOExceptionjavax.servlet.ServletException
-
doService
public Action doService(AtmosphereRequest req, AtmosphereResponse res) throws IOException, javax.servlet.ServletException - Throws:
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 IOException, javax.servlet.ServletException - Throws:
IOExceptionjavax.servlet.ServletException
-