|
|||||||||||
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.alltimeflashdreamer.filelister.AbstractFileListerServlet
Title: AbstractFileListerServlet
Description: This servlet is the superclass of each FileLister servlet and provides the commonly used methods for the extending classes, such as the printing of the error site(s) or the DimDom access method.
Organization: All Time Flash Dreamer
Field Summary | |
static String |
CONFIGCLASSNAME
Stores the name of the config class for quick access by extending classes |
Constructor Summary | |
AbstractFileListerServlet()
|
Method Summary | |
void |
doGet(HttpServletRequest request,
HttpServletResponse response)
Redirects the client to the doPost method, so it doesn't matter whether the call was through the get or the post method. |
abstract void |
doPost(HttpServletRequest request,
HttpServletResponse response)
(abstract declaration, to be implemented by extending classes) |
static void |
showErrorSite(FileListerException fle,
HttpServletResponse response,
FileListerConfig fileListerConfig)
Initializes the appropriate procedure to show the given error to the user. |
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, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String CONFIGCLASSNAME
Constructor Detail |
public AbstractFileListerServlet()
Method Detail |
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
request
- the request object to read URL stuff fromresponse
- the response object to send stuff to
ServletException
- as defined in the superclass
IOException
- as defined in the superclasspublic abstract void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
request
- the request object to read URL stuff fromresponse
- the response object to send stuff to
ServletException
- as defined in the superclass
IOException
- as defined in the superclasspublic static void showErrorSite(FileListerException fle, HttpServletResponse response, FileListerConfig fileListerConfig) throws ServletException, IOException
fle
- the FileListerException to showresponse
- the response to use for redirectsfileListerConfig
- the magic config object
ServletException
- if the ErrorSiteProcessor itself catches an exception
IOException
- if the redirect to the error site somehow failed
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |