org.atmosphere.container
Class Jetty8WebSocketSupport

java.lang.Object
  extended by org.atmosphere.cpr.AsynchronousProcessor
      extended by org.atmosphere.container.Jetty7CometSupport
          extended by org.atmosphere.container.Jetty8WebSocketSupport
All Implemented Interfaces:
CometSupport<AtmosphereResourceImpl>

public class Jetty8WebSocketSupport
extends Jetty7CometSupport

WebSocket Portable Runtime implementation on top of Jetty's Continuation.

Author:
Jeanfrancois Arcand

Field Summary
 
Fields inherited from class org.atmosphere.cpr.AsynchronousProcessor
aliveRequests, cancelledAction, config, logger, timedoutAction
 
Fields inherited from interface org.atmosphere.cpr.CometSupport
MAX_INACTIVE
 
Constructor Summary
Jetty8WebSocketSupport(AtmosphereServlet.AtmosphereConfig config)
           
 
Method Summary
 String getContainerName()
          Return the container's name.
 AtmosphereServlet.Action service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Serve the HttpServletRequest and the HttpServletResponse and return the appropriate AtmosphereServlet.Action.
 boolean supportWebSocket()
          Return true if this implementation supports the websocket protocol.
 
Methods inherited from class org.atmosphere.container.Jetty7CometSupport
action
 
Methods inherited from class org.atmosphere.cpr.AsynchronousProcessor
cancelled, init, map, resumed, supportSession, suspended, timedout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.atmosphere.cpr.CometSupport
init
 

Constructor Detail

Jetty8WebSocketSupport

public Jetty8WebSocketSupport(AtmosphereServlet.AtmosphereConfig config)
Method Detail

service

public AtmosphereServlet.Action service(javax.servlet.http.HttpServletRequest req,
                                        javax.servlet.http.HttpServletResponse res)
                                 throws IOException,
                                        javax.servlet.ServletException
Serve the HttpServletRequest and the HttpServletResponse and return the appropriate AtmosphereServlet.Action.

Specified by:
service in interface CometSupport<AtmosphereResourceImpl>
Overrides:
service in class Jetty7CometSupport
Parameters:
req - the HttpServletRequest
res - the HttpServletResponse
Returns:
the AtmosphereServlet.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 CometSupport<AtmosphereResourceImpl>
Overrides:
getContainerName in class AsynchronousProcessor
Returns:
the name of the Java Web Server.

supportWebSocket

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

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


Copyright © 2011. All Rights Reserved.