|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.atmosphere.cpr.AtmosphereServlet
public class AtmosphereServlet
AtmosphereServlet that use Servlet 3.0 Async API when available, and fallback to native comet support if not available. For Tomcat6/7 and JBossWeb Native support, use atmosphere-native dependencies instead.
If Servlet 3.0 or native API isn't found, Atmosphere will useBlockingIOCometSupport.
| Field Summary | |
|---|---|
protected AtmosphereFrameworkInitializer |
initializer
|
protected static org.slf4j.Logger |
logger
|
| Constructor Summary | |
|---|---|
AtmosphereServlet()
Create an Atmosphere Servlet. |
|
AtmosphereServlet(boolean isFilter)
Create an Atmosphere Servlet. |
|
AtmosphereServlet(boolean isFilter,
boolean autoDetectHandlers)
Create an Atmosphere Servlet. |
|
| Method Summary | |
|---|---|
protected AtmosphereServlet |
configureFramework(javax.servlet.ServletConfig sc)
|
protected AtmosphereServlet |
configureFramework(javax.servlet.ServletConfig sc,
boolean init)
|
void |
destroy()
|
void |
doDelete(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Delegate the request processing to an instance of AsyncSupport. |
void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Delegate the request processing to an instance of AsyncSupport. |
void |
doHead(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Delegate the request processing to an instance of AsyncSupport. |
void |
doOptions(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Delegate the request processing to an instance of AsyncSupport |
void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Delegate the request processing to an instance of AsyncSupport. |
void |
doPut(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Delegate the request processing to an instance of AsyncSupport. |
void |
doTrace(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Delegate the request processing to an instance of AsyncSupport. |
AtmosphereFramework |
framework()
|
void |
init(javax.servlet.ServletConfig sc)
|
protected AtmosphereFramework |
newAtmosphereFramework()
|
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.slf4j.Logger logger
protected final AtmosphereFrameworkInitializer initializer
| Constructor Detail |
|---|
public AtmosphereServlet()
public AtmosphereServlet(boolean isFilter)
isFilter - true if this instance is used as an AtmosphereFilter
public AtmosphereServlet(boolean isFilter,
boolean autoDetectHandlers)
isFilter - true if this instance is used as an AtmosphereFilterautoDetectHandlers - | Method Detail |
|---|
public void destroy()
destroy in interface javax.servlet.Servletdestroy in class javax.servlet.GenericServlet
public void init(javax.servlet.ServletConfig sc)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletjavax.servlet.ServletException
protected AtmosphereServlet configureFramework(javax.servlet.ServletConfig sc)
throws javax.servlet.ServletException
javax.servlet.ServletException
protected AtmosphereServlet configureFramework(javax.servlet.ServletConfig sc,
boolean init)
throws javax.servlet.ServletException
javax.servlet.ServletExceptionprotected AtmosphereFramework newAtmosphereFramework()
public AtmosphereFramework framework()
public void doHead(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws IOException,
javax.servlet.ServletException
AsyncSupport.
doHead in class javax.servlet.http.HttpServletreq - the HttpServletRequestres - the HttpServletResponse
IOException
javax.servlet.ServletException
public void doOptions(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws IOException,
javax.servlet.ServletException
AsyncSupport
doOptions in class javax.servlet.http.HttpServletreq - the HttpServletRequestres - the HttpServletResponse
IOException
javax.servlet.ServletException
public void doTrace(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws IOException,
javax.servlet.ServletException
AsyncSupport.
doTrace in class javax.servlet.http.HttpServletreq - the HttpServletRequestres - the HttpServletResponse
IOException
javax.servlet.ServletException
public void doDelete(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws IOException,
javax.servlet.ServletException
AsyncSupport.
doDelete in class javax.servlet.http.HttpServletreq - the HttpServletRequestres - the HttpServletResponse
IOException
javax.servlet.ServletException
public void doPut(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws IOException,
javax.servlet.ServletException
AsyncSupport.
doPut in class javax.servlet.http.HttpServletreq - the HttpServletRequestres - the HttpServletResponse
IOException
javax.servlet.ServletException
public void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws IOException,
javax.servlet.ServletException
AsyncSupport.
doGet in class javax.servlet.http.HttpServletreq - the HttpServletRequestres - the HttpServletResponse
IOException
javax.servlet.ServletException
public void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws IOException,
javax.servlet.ServletException
AsyncSupport.
doPost in class javax.servlet.http.HttpServletreq - the HttpServletRequestres - the HttpServletResponse
IOException
javax.servlet.ServletException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||