com.sun.grizzly.cometd.servlet
Class CometdServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.sun.grizzly.cometd.servlet.CometdServlet
- All Implemented Interfaces:
- Serializable, Servlet, ServletConfig
public class CometdServlet
- extends HttpServlet
Simple CometdChat that route Cometd Request to the EventRouter.
- Author:
- Jeanfrancois Arcand, TAKAI, Naoto
- See Also:
- Serialized Form
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CometdServlet
public CometdServlet()
CometdServlet
public CometdServlet(PublishInterceptor publishInterceptor)
doGet
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
IOException
- Overrides:
doGet
in class HttpServlet
- Throws:
ServletException
IOException
doPost
public void doPost(HttpServletRequest hreq,
HttpServletResponse hres)
throws ServletException,
IOException
- Overrides:
doPost
in class HttpServlet
- Throws:
ServletException
IOException
getEventRouter
public EventRouter getEventRouter()
- return the current
EventRouter
implementation.
- Returns:
setEventRouter
public void setEventRouter(EventRouter eventRouter)
- Set the
EventRouter
- Parameters:
eventRouter
- the EventRouter
Copyright © 2012 Oracle Corporation. All Rights Reserved.