org.atmosphere.container
Class Grizzly2WebSocketSupport

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

public class Grizzly2WebSocketSupport
extends Grizzly2CometSupport


Nested Class Summary
 
Nested classes/interfaces inherited from class org.atmosphere.cpr.AsynchronousProcessor
AsynchronousProcessor.AsynchronousProcessorHook
 
Field Summary
 
Fields inherited from class org.atmosphere.cpr.AsynchronousProcessor
aliveRequests, cancelledAction, config, timedoutAction
 
Constructor Summary
Grizzly2WebSocketSupport(AtmosphereConfig config)
           
 
Method Summary
 String getContainerName()
          Return the container's name.
 Action service(AtmosphereRequest req, AtmosphereResponse res)
          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.Grizzly2CometSupport
action, cancelled, init
 
Methods inherited from class org.atmosphere.cpr.AsynchronousProcessor
destroyResource, map, resumed, supportSession, suspended, timedout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Grizzly2WebSocketSupport

public Grizzly2WebSocketSupport(AtmosphereConfig config)
Method Detail

service

public Action service(AtmosphereRequest req,
                      AtmosphereResponse res)
               throws IOException,
                      javax.servlet.ServletException
Description copied from class: Grizzly2CometSupport
Serve the AtmosphereRequest and the AtmosphereResponse and return the appropriate Action.

Specified by:
service in interface AsyncSupport<AtmosphereResourceImpl>
Overrides:
service in class Grizzly2CometSupport
Parameters:
req - the AtmosphereRequest
res - 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 AsynchronousProcessor
Returns:
the name of the Java Web Server.

supportWebSocket

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

Specified by:
supportWebSocket in interface AsyncSupport<AtmosphereResourceImpl>
Overrides:
supportWebSocket in class AsynchronousProcessor

shutdown

public void shutdown()
Overrides:
shutdown in class AsynchronousProcessor


Copyright © 2012. All Rights Reserved.