|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.atmosphere.cpr.WebContainer
public abstract class WebContainer
Base class which implement the semantics of supending and resuming of a Comet Request.
| Field Summary | |
|---|---|
protected Map<String,AtmosphereServlet.AtmosphereHandlerWrapper> |
atmosphereHandlers
|
protected static String |
EVENT
|
protected Logger |
logger
|
| Constructor Summary | |
|---|---|
WebContainer(Map<String,AtmosphereServlet.AtmosphereHandlerWrapper> atmosphereHandlers)
|
|
| Method Summary | |
|---|---|
void |
init(ServletConfig sc)
Init this WebContainer. |
AtmosphereServlet.Action |
resumed(HttpServletRequest req,
HttpServletResponse res)
All proprietary Comet based Servlet must invoke the resume
method when the Atmosphere's application decide to resume the HttpServletResponse. |
protected void |
setWebServerName(String webServerName)
Set the WebServer's name. |
AtmosphereServlet.Action |
suspended(HttpServletRequest req,
HttpServletResponse res)
All proprietary Comet based Servlet must invoke the suspended
method when the first request comes in. |
AtmosphereServlet.Action |
timedout(HttpServletRequest req,
HttpServletResponse res)
All proprietary Comet based Servlet must invoke the timedout
method when the underlying WebServer time out the HttpServletResponse. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Logger logger
protected final Map<String,AtmosphereServlet.AtmosphereHandlerWrapper> atmosphereHandlers
protected static final String EVENT
| Constructor Detail |
|---|
public WebContainer(Map<String,AtmosphereServlet.AtmosphereHandlerWrapper> atmosphereHandlers)
| Method Detail |
|---|
public void init(ServletConfig sc)
throws ServletException
WebContainer.
sc - the ServletContext
ServletException
public AtmosphereServlet.Action suspended(HttpServletRequest req,
HttpServletResponse res)
throws IOException,
ServletException
Servlet must invoke the suspended
method when the first request comes in. The returned value, of type
Atmosphere#Action, tells the proprietary Comet Servlet
to suspended or not the current HttpServletResponse.
req - the HttpServletRequestres - the HttpServletResponse
IOException
ServletException
public AtmosphereServlet.Action resumed(HttpServletRequest req,
HttpServletResponse res)
throws IOException,
ServletException
Servlet must invoke the resume
method when the Atmosphere's application decide to resume the HttpServletResponse.
The returned value, of type
Atmosphere#Action, tells the proprietary Comet Servlet
to resume (again), suspended or do nothing with the current HttpServletResponse.
req - the HttpServletRequestres - the HttpServletResponse
IOException
ServletException
public AtmosphereServlet.Action timedout(HttpServletRequest req,
HttpServletResponse res)
throws IOException,
ServletException
Servlet must invoke the timedout
method when the underlying WebServer time out the HttpServletResponse.
The returned value, of type
Atmosphere#Action, tells the proprietary Comet Servlet
to resume (again), suspended or do nothing with the current HttpServletResponse.
req - the HttpServletRequestres - the HttpServletResponse
IOException
ServletExceptionprotected void setWebServerName(String webServerName)
webServerName - the WebServer's name.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||