|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CometSupport<E extends AtmosphereResource>
Atmosphere's supported WebServer must implement this interface in order
to be auto detected by the AtmosphereServlet. If the AtmosphereServlet
fail to detect the CometSupport, it will use a blocking thread
approach to emulate Comet using the BlockingIOCometSupport.
<<atmosphere-handler ... comet-support="your.class.name">
| Field Summary | |
|---|---|
static String |
MAX_INACTIVE
|
| Method Summary | |
|---|---|
void |
action(E actionEvent)
Process an AtmosphereServlet.Action from an ActionEvent operation like suspend, resume or timed out. |
String |
getContainerName()
Return the name of the Java Web Server. |
void |
init(javax.servlet.ServletConfig sc)
Initialize the WebServer using the ServletConfig |
AtmosphereServlet.Action |
service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Serve the HttpServletRequest and the HttpServletResponse and return
the appropriate AtmosphereServlet.Action. |
boolean |
supportWebSocket()
Return true if this implementation supports the websocket protocol. |
| Field Detail |
|---|
static final String MAX_INACTIVE
| Method Detail |
|---|
String getContainerName()
void init(javax.servlet.ServletConfig sc)
throws javax.servlet.ServletException
ServletConfig
sc - the ServletConfig
javax.servlet.ServletException
AtmosphereServlet.Action service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws IOException,
javax.servlet.ServletException
HttpServletRequest and the HttpServletResponse and return
the appropriate AtmosphereServlet.Action.
req - the HttpServletRequestres - the HttpServletResponse
AtmosphereServlet.Action that was manipulated by the AtmosphereHandler
IOException
javax.servlet.ServletExceptionvoid action(E actionEvent)
AtmosphereServlet.Action from an ActionEvent operation like suspend, resume or timed out.
actionEvent - An instance of AtmosphereServlet.Actionboolean supportWebSocket()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||