public class AtmosphereServlet
extends javax.servlet.http.HttpServlet
implements org.apache.catalina.CometProcessor, org.jboss.servlet.http.HttpEventServlet, org.apache.catalina.comet.CometProcessor
| Modifier and Type | Field and Description |
|---|---|
protected AtmosphereFrameworkInitializer |
initializer |
protected static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
AtmosphereServlet()
Create an Atmosphere Servlet.
|
AtmosphereServlet(boolean isFilter)
Create an Atmosphere Servlet.
|
AtmosphereServlet(boolean isFilter,
boolean autoDetectHandlers)
Create an Atmosphere Servlet.
|
| Modifier and Type | Method and Description |
|---|---|
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 |
void |
event(org.apache.catalina.CometEvent cometEvent)
Hack to support Tomcat AIO like other WebServer.
|
void |
event(org.apache.catalina.comet.CometEvent cometEvent)
Hack to support Tomcat 7 AIO
|
void |
event(org.jboss.servlet.http.HttpEvent httpEvent)
Hack to support JBossWeb AIO like other WebServer.
|
AtmosphereFramework |
framework() |
void |
init(javax.servlet.ServletConfig sc) |
protected AtmosphereFramework |
newAtmosphereFramework() |
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, logprotected static final org.slf4j.Logger logger
protected final AtmosphereFrameworkInitializer initializer
public AtmosphereServlet()
public AtmosphereServlet(boolean isFilter)
isFilter - true if this instance is used as an AtmosphereFilterpublic AtmosphereServlet(boolean isFilter,
boolean autoDetectHandlers)
isFilter - true if this instance is used as an AtmosphereFilterautoDetectHandlers - public void destroy()
destroy in interface javax.servlet.Servletdestroy in class javax.servlet.GenericServletpublic void init(javax.servlet.ServletConfig sc)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletjavax.servlet.ServletExceptionprotected AtmosphereServlet configureFramework(javax.servlet.ServletConfig sc) throws javax.servlet.ServletException
javax.servlet.ServletExceptionprotected 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
AsyncSupportdoHead in class javax.servlet.http.HttpServletreq - the HttpServletRequestres - the HttpServletResponseIOExceptionjavax.servlet.ServletExceptionpublic void doOptions(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws IOException,
javax.servlet.ServletException
AsyncSupportdoOptions in class javax.servlet.http.HttpServletreq - the HttpServletRequestres - the HttpServletResponseIOExceptionjavax.servlet.ServletExceptionpublic void doTrace(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws IOException,
javax.servlet.ServletException
AsyncSupportdoTrace in class javax.servlet.http.HttpServletreq - the HttpServletRequestres - the HttpServletResponseIOExceptionjavax.servlet.ServletExceptionpublic void doDelete(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws IOException,
javax.servlet.ServletException
AsyncSupportdoDelete in class javax.servlet.http.HttpServletreq - the HttpServletRequestres - the HttpServletResponseIOExceptionjavax.servlet.ServletExceptionpublic void doPut(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws IOException,
javax.servlet.ServletException
AsyncSupportdoPut in class javax.servlet.http.HttpServletreq - the HttpServletRequestres - the HttpServletResponseIOExceptionjavax.servlet.ServletExceptionpublic void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws IOException,
javax.servlet.ServletException
AsyncSupportdoGet in class javax.servlet.http.HttpServletreq - the HttpServletRequestres - the HttpServletResponseIOExceptionjavax.servlet.ServletExceptionpublic void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws IOException,
javax.servlet.ServletException
AsyncSupportdoPost in class javax.servlet.http.HttpServletreq - the HttpServletRequestres - the HttpServletResponseIOExceptionjavax.servlet.ServletExceptionpublic void event(org.apache.catalina.CometEvent cometEvent)
throws IOException,
javax.servlet.ServletException
Servlet implements the interface
CometProcessor without invoking Servlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)cometEvent - the CometEventIOExceptionjavax.servlet.ServletExceptionpublic void event(org.apache.catalina.comet.CometEvent cometEvent)
throws IOException,
javax.servlet.ServletException
event in interface org.apache.catalina.comet.CometProcessorIOExceptionjavax.servlet.ServletExceptionpublic void event(org.jboss.servlet.http.HttpEvent httpEvent)
throws IOException,
javax.servlet.ServletException
Servlet implements the interface
HttpEventServlet without invoking Servlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)event in interface org.jboss.servlet.http.HttpEventServlethttpEvent - the CometEventIOExceptionjavax.servlet.ServletExceptionCopyright © 2016. All Rights Reserved.