com.sapportals.htmlb.page

Class PageProcessorServlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended bycom.sapportals.htmlb.page.PageProcessorServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public abstract class PageProcessorServlet
extends HttpServlet

Copyright 2004 SAP AG

See Also:
Serialized Form

Constructor Summary
PageProcessorServlet()
           
 
Method Summary
 void destroy()
          Clean up resources
 void doGet(HttpServletRequest request, HttpServletResponse response)
          Process the HTTP Get request
protected  void doPost(HttpServletRequest request, HttpServletResponse response)
          Process the HTTP Post request
abstract  DynPage getPage()
          Should be implemented by derived class if request and response is not needed to create a page (usual case).
protected  DynPage getPage(HttpServletRequest request, HttpServletResponse response)
          Workaround to let API unchanged.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
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
 

Constructor Detail

PageProcessorServlet

public PageProcessorServlet()
Method Detail

doPost

protected void doPost(HttpServletRequest request,
                      HttpServletResponse response)
               throws ServletException,
                      IOException
Process the HTTP Post request

Throws:
ServletException
IOException

doGet

public void doGet(HttpServletRequest request,
                  HttpServletResponse response)
           throws ServletException,
                  IOException
Process the HTTP Get request

Throws:
ServletException
IOException

destroy

public void destroy()
Clean up resources


getPage

public abstract DynPage getPage()
Should be implemented by derived class if request and response is not needed to create a page (usual case).


getPage

protected DynPage getPage(HttpServletRequest request,
                          HttpServletResponse response)
Workaround to let API unchanged. In some circumstances request and response are needed to create a page. In that case the default implementation can be reimplemented in derived class. The abstract getPage() method can have a pseudo implementation in that case.



Copyright 2006 SAP AG Complete Copyright Notice