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.
Constructor and Description |
---|
CometDServlet() |
Modifier and Type | Method and 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) |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
public void init() throws javax.servlet.ServletException
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
public BayeuxServerImpl getBayeux()
protected BayeuxServerImpl newBayeuxServer()
protected void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
service
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
protected void serviceOptions(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
public void destroy()
destroy
in interface javax.servlet.Servlet
destroy
in class javax.servlet.GenericServlet
Copyright © 2008–2024 The CometD Project. All rights reserved.