com.caucho.bayeux
Class BayeuxServlet
java.lang.Object
javax.servlet.GenericServlet
com.caucho.servlet.comet.GenericCometServlet
com.caucho.bayeux.BayeuxServlet
- All Implemented Interfaces:
- CometServlet, java.io.Serializable, Servlet, ServletConfig
public class BayeuxServlet
- extends GenericCometServlet
Servlet to handle bayeux requests.
- See Also:
- Serialized Form
| Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BayeuxServlet
public BayeuxServlet()
service
public boolean service(ServletRequest req,
ServletResponse resp,
CometController controller)
throws java.io.IOException,
ServletException
- Services the initial request.
- Specified by:
service in interface CometServlet- Specified by:
service in class GenericCometServlet
- Parameters:
request - the servlet request objectresponse - the servlet response objectcontroller - the controller to be passed to application code
- Returns:
- true for keepalive, false for the end of the request
- Throws:
java.io.IOException
ServletException
resume
public boolean resume(ServletRequest request,
ServletResponse response,
CometController controller)
throws java.io.IOException,
ServletException
- Resumes service the initial request.
- Specified by:
resume in interface CometServlet- Overrides:
resume in class GenericCometServlet
- Parameters:
request - the servlet request objectresponse - the servlet response objectcontroller - the controller to be passed to application code
- Returns:
- true for keepalive, false for the end of the request
- Throws:
java.io.IOException
ServletException