org.atmosphere.container
Class Servlet30CometSupportWithWebSocket
java.lang.Object
org.atmosphere.cpr.AsynchronousProcessor
org.atmosphere.container.Servlet30CometSupport
org.atmosphere.container.Servlet30CometSupportWithWebSocket
- All Implemented Interfaces:
- CometSupport<AtmosphereResourceImpl>
public class Servlet30CometSupportWithWebSocket
- extends Servlet30CometSupport
This class is the same as JettyCometSupportWithWebSocket 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 |
Servlet30CometSupportWithWebSocket
public Servlet30CometSupportWithWebSocket(AtmosphereServlet.AtmosphereConfig config)
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 Servlet30CometSupport
- Parameters:
req - the HttpServletRequestres - 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 Servlet30CometSupport
- Returns:
- "javax.servlet"
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.