public class CometDServlet
extends javax.servlet.http.HttpServlet
The CometD Servlet maps HTTP requests to the AbstractHttpTransport
of a BayeuxServer instance.
The BayeuxServer instance is searched in the servlet context under the BayeuxServer.ATTRIBUTE
attribute; if it is found then it is used without further configuration, otherwise a new BayeuxServer
instance is created and configured using the init parameters of this servlet.
| Modifier and Type | Field | Description |
|---|---|---|
protected org.slf4j.Logger |
_logger |
| Constructor | Description |
|---|---|
CometDServlet() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
destroy() |
|
BayeuxServerImpl |
getBayeux() |
|
void |
init() |
|
protected BayeuxServerImpl |
newBayeuxServer() |
|
protected void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
|
protected void |
serviceOptions(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, logpublic void init()
throws javax.servlet.ServletException
init in class javax.servlet.GenericServletjavax.servlet.ServletExceptionpublic BayeuxServerImpl getBayeux()
protected BayeuxServerImpl newBayeuxServer()
protected void service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
service in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionjava.io.IOExceptionprotected void serviceOptions(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
public void destroy()
destroy in class javax.servlet.GenericServletGenericServlet.destroy()Copyright © 2008–2017 The CometD Project. All rights reserved.