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