org.atmosphere.container
Class Servlet30Support
java.lang.Object
org.atmosphere.cpr.WebContainer
org.atmosphere.container.Servlet30Support
- All Implemented Interfaces:
- CometSupport
public class Servlet30Support
- extends WebContainer
- implements CometSupport
This class gets used when the AtmosphereServlet detect the container
detect Servlet 3.0 Asynch API.
- Author:
- Jeanfrancois Arcand
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Servlet30Support
public Servlet30Support(Map<String,AtmosphereServlet.AtmosphereHandlerWrapper> atmosphereHandlers)
getContainerName
public String getContainerName()
- Return "javax.servlet".
- Specified by:
getContainerName in interface CometSupport
- Returns:
- "javax.servlet"
getContainerDottedVersion
public String getContainerDottedVersion()
- Return "3.0"
- Specified by:
getContainerDottedVersion in interface CometSupport
- Returns:
- "3.0"
service
public AtmosphereServlet.Action service(HttpServletRequest req,
HttpServletResponse res)
throws IOException,
ServletException
- Serve the
HttpServletRequest and the HttpServletResponse.
- Specified by:
service in interface CometSupport
- Parameters:
req - the HttpServletRequestres - the HttpServletResponse
- Returns:
- the
AtmosphereServlet.Action that was manipulated by the AtmosphereHandler
- Throws:
IOException
ServletException
Copyright © 2009 SUN Microsystems. All Rights Reserved.