com.caucho.servlet.comet
Interface CometServlet

All Superinterfaces:
Servlet
All Known Implementing Classes:
GenericCometServlet

public interface CometServlet
extends Servlet

Servlet to handle comet requests.


Method Summary
 boolean resume(ServletRequest request, ServletResponse response, CometController controller)
          Resumes service the initial request.
 boolean service(ServletRequest request, ServletResponse response, CometController controller)
          Services the initial request.
 
Methods inherited from interface javax.servlet.Servlet
destroy, getServletConfig, getServletInfo, init, service
 

Method Detail

service

boolean service(ServletRequest request,
                ServletResponse response,
                CometController controller)
                throws java.io.IOException,
                       ServletException
Services the initial request.

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

boolean resume(ServletRequest request,
               ServletResponse response,
               CometController controller)
               throws java.io.IOException,
                      ServletException
Resumes service the initial request.

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