Package org.atmosphere.container
Class GlassFishServlet30WebSocketSupport
java.lang.Object
org.atmosphere.cpr.AsynchronousProcessor
org.atmosphere.container.Servlet30CometSupport
org.atmosphere.container.GlassFishServlet30WebSocketSupport
- All Implemented Interfaces:
AsyncSupport<AtmosphereResourceImpl>
Websocket Portable Runtime implementation on top of GlassFish 3.0.1 and up.
- Author:
- Jeanfrancois Arcand
-
Field Summary
Fields inherited from class org.atmosphere.cpr.AsynchronousProcessor
cancelledAction, config, timedoutAction -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the container's name.voidinit(javax.servlet.ServletConfig sc) Initialize the WebServer using theServletConfigservice(AtmosphereRequest request, AtmosphereResponse response) voidshutdown()booleanReturn true if this implementation supports the websocket protocol.Methods inherited from class org.atmosphere.container.Servlet30CometSupport
action, cancelled, complete, endAsyncContextMethods inherited from class org.atmosphere.cpr.AsynchronousProcessor
allowSessionTimeoutRemoval, completeLifecycle, endRequest, invokeAtmosphereHandler, invokeInterceptors, map, postInterceptors, resumed, supportSession, suspended, timedout
-
Constructor Details
-
GlassFishServlet30WebSocketSupport
-
-
Method Details
-
init
public void init(javax.servlet.ServletConfig sc) throws javax.servlet.ServletException Description copied from interface:AsyncSupportInitialize the WebServer using theServletConfig- Specified by:
initin interfaceAsyncSupport<AtmosphereResourceImpl>- Overrides:
initin classAsynchronousProcessor- Parameters:
sc- theServletConfig- Throws:
javax.servlet.ServletException
-
shutdown
public void shutdown()- Overrides:
shutdownin classAsynchronousProcessor
-
service
public Action service(AtmosphereRequest request, AtmosphereResponse response) throws IOException, javax.servlet.ServletException Description copied from interface:AsyncSupport- Specified by:
servicein interfaceAsyncSupport<AtmosphereResourceImpl>- Overrides:
servicein classServlet30CometSupport- Parameters:
request- theAtmosphereRequestresponse- theAtmosphereResponse- Returns:
- the
Actionthat was manipulated by theAtmosphereHandler - Throws:
IOExceptionjavax.servlet.ServletException
-
getContainerName
Return the container's name.- Specified by:
getContainerNamein interfaceAsyncSupport<AtmosphereResourceImpl>- Overrides:
getContainerNamein classServlet30CometSupport- Returns:
- "javax.servlet"
-
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
-