org.atmosphere.container
Class BlockingIOCometSupport
java.lang.Object
org.atmosphere.cpr.WebContainer
org.atmosphere.container.BlockingIOCometSupport
- All Implemented Interfaces:
- CometSupport
public class BlockingIOCometSupport
- extends WebContainer
- implements CometSupport
This class gets used when the AtmosphereServlet fails to autodetect
the Servlet Container we have been deployed.
This CometSupport implementation uses a blocking approach, meaning
the request thread will be blocked until another Thread invoke the
Broadcaster#notify
- Author:
- Jeanfrancois Arcand
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BlockingIOCometSupport
public BlockingIOCometSupport(Map<String,AtmosphereServlet.AtmosphereHandlerWrapper> atmosphereHandlers)
getContainerName
public String getContainerName()
- Return "Unknown" as we failed to detect the WebContainer we have been
deployed on.
- Specified by:
getContainerName in interface CometSupport
- Returns:
- "Unknown"
getContainerDottedVersion
public String getContainerDottedVersion()
- Return "Unknown" as we failed to detect the WebContainer we have been
deployed on.
- Specified by:
getContainerDottedVersion in interface CometSupport
- Returns:
- "Unknown"
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.