Class CometDServlet

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.cometd.server.http.jakarta.CometDServlet
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable
Direct Known Subclasses:
AnnotationCometDServlet

public class CometDServlet extends jakarta.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 name specified by the "bayeuxServerContextAttributeName" option, whose default is "org.cometd.bayeux".

If a BayeuxServer instance 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.

See Also: