org.atmosphere.container
Class GlassFishServlet30WebSocketSupport

java.lang.Object
  extended by org.atmosphere.cpr.AsynchronousProcessor
      extended by org.atmosphere.container.Servlet30CometSupport
          extended by org.atmosphere.container.GlassFishServlet30WebSocketSupport
All Implemented Interfaces:
AsyncSupport<AtmosphereResourceImpl>

public class GlassFishServlet30WebSocketSupport
extends Servlet30CometSupport

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
GlassFishServlet30WebSocketSupport(AtmosphereConfig config)
           
 
Method Summary
 String getContainerName()
          Return the container's name.
 void init(javax.servlet.ServletConfig sc)
          Initialize the WebServer using the ServletConfig
 Action service(AtmosphereRequest request, AtmosphereResponse response)
          Serve the AtmosphereRequest and the AtmosphereResponse and return the appropriate Action.
 void shutdown()
           
 boolean supportWebSocket()
          Return true if this implementation supports the websocket protocol.
 
Methods inherited from class org.atmosphere.container.Servlet30CometSupport
action, cancelled, complete, endAsyncContext
 
Methods inherited from class org.atmosphere.cpr.AsynchronousProcessor
allowSessionTimeoutRemoval, completeLifecycle, endRequest, invokeAtmosphereHandler, invokeInterceptors, map, postInterceptors, resumed, supportSession, suspended, timedout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlassFishServlet30WebSocketSupport

public GlassFishServlet30WebSocketSupport(AtmosphereConfig config)
Method Detail

init

public void init(javax.servlet.ServletConfig sc)
          throws javax.servlet.ServletException
Description copied from interface: AsyncSupport
Initialize the WebServer using the ServletConfig

Specified by:
init in interface AsyncSupport<AtmosphereResourceImpl>
Overrides:
init in class AsynchronousProcessor
Parameters:
sc - the ServletConfig
Throws:
javax.servlet.ServletException

shutdown

public void shutdown()
Overrides:
shutdown in class AsynchronousProcessor

service

public Action service(AtmosphereRequest request,
                      AtmosphereResponse response)
               throws IOException,
                      javax.servlet.ServletException
Description copied from interface: AsyncSupport
Serve the AtmosphereRequest and the AtmosphereResponse and return the appropriate Action.

Specified by:
service in interface AsyncSupport<AtmosphereResourceImpl>
Overrides:
service in class Servlet30CometSupport
Parameters:
request - the AtmosphereRequest
response - the AtmosphereResponse
Returns:
the Action that was manipulated by the AtmosphereHandler
Throws:
IOException
javax.servlet.ServletException

getContainerName

public String getContainerName()
Return the container's name.

Specified by:
getContainerName in interface AsyncSupport<AtmosphereResourceImpl>
Overrides:
getContainerName in class Servlet30CometSupport
Returns:
"javax.servlet"

supportWebSocket

public boolean supportWebSocket()
Description copied from interface: AsyncSupport
Return true if this implementation supports the websocket protocol.

Specified by:
supportWebSocket in interface AsyncSupport<AtmosphereResourceImpl>
Overrides:
supportWebSocket in class AsynchronousProcessor
Returns:
true if supported


Copyright © 2014. All Rights Reserved.