org.atmosphere.container
Class Servlet30AsyncSupportWithWebSocket
java.lang.Object
org.atmosphere.cpr.AsynchronousProcessor
org.atmosphere.container.Servlet30CometSupport
org.atmosphere.container.Servlet30AsyncSupportWithWebSocket
- All Implemented Interfaces:
- AsyncSupport<AtmosphereResourceImpl>
public class Servlet30AsyncSupportWithWebSocket
- extends Servlet30CometSupport
This class is the same as JettyAsyncSupportWithWebSocket implementation and add Websocket support
to Servlet 3.0.
- Author:
- Jeanfrancois Arcand
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Servlet30AsyncSupportWithWebSocket
public Servlet30AsyncSupportWithWebSocket(AtmosphereConfig config)
service
public Action service(AtmosphereRequest req,
AtmosphereResponse res)
throws IOException,
javax.servlet.ServletException
- Serve the
AtmosphereRequest and the AtmosphereResponse and return
the appropriate Action.
- Specified by:
service in interface AsyncSupport<AtmosphereResourceImpl>- Overrides:
service in class Servlet30CometSupport
- 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 Servlet30CometSupport
- Returns:
- "javax.servlet"
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
Copyright © 2012. All Rights Reserved.