org.cometd.server
Class CometdServlet
java.lang.Object
javax.servlet.GenericServlet
org.cometd.server.CometdServlet
- All Implemented Interfaces:
- Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class CometdServlet
- extends javax.servlet.GenericServlet
The CometD Servlet maps HTTP requests to the HttpTransport 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.
- See Also:
- Serialized Form
| 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 |
CONFIG_LEVEL
@Deprecated
public static final int CONFIG_LEVEL
- Deprecated. Use
BayeuxServerImpl.CONFIG_LOG_LEVEL instead.
- See Also:
- Constant Field Values
INFO_LEVEL
@Deprecated
public static final int INFO_LEVEL
- Deprecated. Use
BayeuxServerImpl.INFO_LOG_LEVEL instead.
- See Also:
- Constant Field Values
DEBUG_LEVEL
@Deprecated
public static final int DEBUG_LEVEL
- Deprecated. Use
BayeuxServerImpl.DEBUG_LOG_LEVEL instead.
- See Also:
- Constant Field Values
CometdServlet
public CometdServlet()
init
public void init()
throws javax.servlet.ServletException
- Overrides:
init in class javax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException
getBayeux
public BayeuxServerImpl getBayeux()
newBayeuxServer
protected BayeuxServerImpl newBayeuxServer()
getTransports
public List<HttpTransport> getTransports()
service
public void service(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse resp)
throws javax.servlet.ServletException,
IOException
- Specified by:
service in interface javax.servlet.Servlet- Specified by:
service in class javax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException
IOException
service
protected void service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
- Throws:
javax.servlet.ServletException
IOException
serviceOptions
protected void serviceOptions(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
destroy
public void destroy()
- Specified by:
destroy in interface javax.servlet.Servlet- Overrides:
destroy in class javax.servlet.GenericServlet
- See Also:
GenericServlet.destroy()
Copyright © 2008-2010 Dojo Foundation. All Rights Reserved.