org.granite.gravity.jbossweb
Class AbstractHttpEventServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.granite.gravity.AbstractGravityServlet
              extended by org.granite.gravity.jbossweb.AbstractHttpEventServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig, org.jboss.servlet.http.HttpEventServlet
Direct Known Subclasses:
GravityJBossWebServlet

public abstract class AbstractHttpEventServlet
extends AbstractGravityServlet
implements org.jboss.servlet.http.HttpEventServlet

Author:
Franck WOLFF
See Also:
Serialized Form

Constructor Summary
AbstractHttpEventServlet()
           
 
Method Summary
protected  void begin(org.jboss.servlet.http.HttpEvent event)
           
abstract  CometIO createCometIO()
           
protected  void end(org.jboss.servlet.http.HttpEvent event)
           
protected  void error(org.jboss.servlet.http.HttpEvent event)
           
 void event(org.jboss.servlet.http.HttpEvent event)
           
abstract  boolean handleEnd(org.jboss.servlet.http.HttpEvent event)
           
abstract  boolean handleError(org.jboss.servlet.http.HttpEvent event)
           
abstract  boolean handleRequest(org.jboss.servlet.http.HttpEvent event, InputStream content)
           
 void init(ServletConfig config)
           
protected  void read(org.jboss.servlet.http.HttpEvent event)
           
protected  void service(HttpServletRequest request, HttpServletResponse response)
           
 
Methods inherited from class org.granite.gravity.AbstractGravityServlet
cleanupRequest, deserialize, deserialize, doDelete, doGet, doHead, doOptions, doPut, doTrace, getConnectMessage, getLongPollingTimeout, init, initializeRequest, removeConnectMessage, serialize, setConnectMessage
 
Methods inherited from class javax.servlet.http.HttpServlet
doPost, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, 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
 
Methods inherited from interface javax.servlet.Servlet
destroy, getServletConfig, getServletInfo, service
 

Constructor Detail

AbstractHttpEventServlet

public AbstractHttpEventServlet()
Method Detail

init

public void init(ServletConfig config)
          throws ServletException
Specified by:
init in interface Servlet
Overrides:
init in class GenericServlet
Throws:
ServletException

createCometIO

public abstract CometIO createCometIO()

handleRequest

public abstract boolean handleRequest(org.jboss.servlet.http.HttpEvent event,
                                      InputStream content)
                               throws IOException,
                                      ServletException
Throws:
IOException
ServletException

handleEnd

public abstract boolean handleEnd(org.jboss.servlet.http.HttpEvent event)
                           throws IOException,
                                  ServletException
Throws:
IOException
ServletException

handleError

public abstract boolean handleError(org.jboss.servlet.http.HttpEvent event)
                             throws IOException,
                                    ServletException
Throws:
IOException
ServletException

event

public void event(org.jboss.servlet.http.HttpEvent event)
           throws IOException,
                  ServletException
Specified by:
event in interface org.jboss.servlet.http.HttpEventServlet
Throws:
IOException
ServletException

begin

protected void begin(org.jboss.servlet.http.HttpEvent event)
              throws IOException,
                     ServletException
Throws:
IOException
ServletException

read

protected void read(org.jboss.servlet.http.HttpEvent event)

end

protected void end(org.jboss.servlet.http.HttpEvent event)
            throws IOException,
                   ServletException
Throws:
IOException
ServletException

error

protected void error(org.jboss.servlet.http.HttpEvent event)
              throws IOException,
                     ServletException
Throws:
IOException
ServletException

service

protected void service(HttpServletRequest request,
                       HttpServletResponse response)
                throws IOException,
                       ServletException
Overrides:
service in class HttpServlet
Throws:
IOException
ServletException