com.caucho.bayeux
Class BayeuxServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by com.caucho.servlet.comet.GenericCometServlet
          extended by 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

Constructor Summary
BayeuxServlet()
           
 
Method Summary
 boolean resume(ServletRequest request, ServletResponse response, CometController controller)
          Resumes service the initial request.
 boolean service(ServletRequest req, ServletResponse resp, CometController controller)
          Services the initial request.
 
Methods inherited from class com.caucho.servlet.comet.GenericCometServlet
service
 
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
 
Methods inherited from interface javax.servlet.Servlet
destroy, getServletConfig, getServletInfo, init
 

Constructor Detail

BayeuxServlet

public BayeuxServlet()
Method Detail

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 object
response - the servlet response object
controller - 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 object
response - the servlet response object
controller - the controller to be passed to application code
Returns:
true for keepalive, false for the end of the request
Throws:
java.io.IOException
ServletException