|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.GenericServlet javax.servlet.http.HttpServlet org.dbforms.servlets.base.AbstractServletBase
public abstract class AbstractServletBase
This is the abstract base class for generating reports.
Constructor Summary | |
---|---|
AbstractServletBase()
|
Method Summary | |
---|---|
void |
doGet(HttpServletRequest request,
HttpServletResponse response)
Basic servlet method, answers requests from the browser. |
void |
doPost(HttpServletRequest request,
HttpServletResponse response)
Basic servlet method, answers requests fromt the browser. |
void |
init()
Initialize this servlet. |
protected abstract void |
process(HttpServletRequest request,
HttpServletResponse response)
generates a report from request. |
protected void |
sendErrorMessage(String message,
HttpServletResponse response)
Send error messages to the servlet's output stream |
Methods inherited from class javax.servlet.http.HttpServlet |
---|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, 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 |
Constructor Detail |
---|
public AbstractServletBase()
Method Detail |
---|
public final void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
doGet
in class HttpServlet
request
- HTTPServletRequestresponse
- HTTPServletResponse
ServletException
- if there is a servlet problem.
IOException
- if there is an I/O problem.public final void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
doPost
in class HttpServlet
request
- HTTPServletRequestresponse
- HTTPServletResponse
ServletException
- if there is a servlet problem.
IOException
- if there is an I/O problem.protected abstract void process(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
request
- HTTPServletRequestresponse
- HTTPServletResponse
IOException
ServletException
public void init() throws ServletException
init
in class GenericServlet
ServletException
- if the initialization failsprotected void sendErrorMessage(String message, HttpServletResponse response)
message
- the message to displayresponse
- the response object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |