org.atmosphere.container
Class JettyAsyncSupportWithWebSocket
java.lang.Object
org.atmosphere.cpr.AsynchronousProcessor
org.atmosphere.container.Jetty7CometSupport
org.atmosphere.container.JettyAsyncSupportWithWebSocket
- All Implemented Interfaces:
- AsyncSupport<AtmosphereResourceImpl>
public class JettyAsyncSupportWithWebSocket
- extends Jetty7CometSupport
WebSocket Portable Runtime implementation on top of Jetty's.
- Author:
- Jeanfrancois Arcand
| Methods inherited from class org.atmosphere.cpr.AsynchronousProcessor |
allowSessionTimeoutRemoval, cancelled, completeLifecycle, endRequest, init, invokeAtmosphereHandler, invokeInterceptors, map, postInterceptors, resumed, shutdown, supportSession, suspended, timedout |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JettyAsyncSupportWithWebSocket
public JettyAsyncSupportWithWebSocket(AtmosphereConfig config)
service
public Action service(AtmosphereRequest req,
AtmosphereResponse res)
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 Jetty7CometSupport
- Parameters:
req - the AtmosphereRequestres - 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.
- Specified by:
supportWebSocket in interface AsyncSupport<AtmosphereResourceImpl>- Overrides:
supportWebSocket in class AsynchronousProcessor
- Returns:
- true if supported
Copyright © 2014. All Rights Reserved.