org.atmosphere.container
Class GrizzlyCometSupport
java.lang.Object
org.atmosphere.cpr.WebContainer
org.atmosphere.container.GrizzlyCometSupport
- All Implemented Interfaces:
- CometSupport
- Direct Known Subclasses:
- GlassFishv3CometSupport
public class GrizzlyCometSupport
- extends WebContainer
- implements CometSupport
Comet Portable Runtime implementation on top of Grizzly 1.5 and up.
- Author:
- Jeanfrancois Arcand
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GrizzlyCometSupport
public GrizzlyCometSupport(Map<String,AtmosphereServlet.AtmosphereHandlerWrapper> atmosphereHandlers)
init
public void init(ServletConfig sc)
throws ServletException
- Init Grizzly's
CometContext that will be used to suspend and
resume the response.
- Specified by:
init in interface CometSupport- Overrides:
init in class WebContainer
- Parameters:
sc - the ServletContext
- Throws:
ServletException
getContainerName
public String getContainerName()
- Return the name of the Java Web Server.
- Specified by:
getContainerName in interface CometSupport
- Returns:
- the name of the Java Web Server.
getContainerDottedVersion
public String getContainerDottedVersion()
- Return the supported version of the Java Web Server
- Specified by:
getContainerDottedVersion in interface CometSupport
- Returns:
- the supported version of the Java Web Server
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.