|
jacquard 1.12.0 by The Web Engineering Factory and Toolworks | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
uk.co.weft.maybeupload.MaybeUploadServlet
uk.co.weft.htform.Servlet
uk.co.weft.htform.WithExceptionHandlerServlet
A class which abstracts out exception handling from more specialised Jacquard servlets. Essentially, this class does nothing unless some class further up the stack throws an exception which is not caught. If this happens this class takes over and either handles the exception tidily itself or passes it to a registered ExceptionHandler.
This class and consequently its subclasses knows about the following configuration parameter:
| Field Summary | |
static java.lang.String |
EXCEPTIONHANDLERCLASSCONFIGTOKEN
a token on which to look in the configuration for the name of the exception handler class to use |
| Fields inherited from class uk.co.weft.maybeupload.MaybeUploadServlet |
allowOverwrite, maxUpload, saveUploadedFilesToDisk, silentlyRename, uploadDir, uploadDirPath, uploadDirURL |
| Fields inherited from interface uk.co.weft.htform.ResourceConsumer |
RESOURCEBUNDLEMAGICTOKEN |
| Constructor Summary | |
WithExceptionHandlerServlet()
|
|
| Method Summary | |
void |
init(Context config)
Read my configuration |
protected void |
whinge(javax.servlet.ServletOutputStream out,
java.lang.Exception e)
Deprecated. use whinge(ServletOutputStream,Exception,Context,boolean) |
protected void |
whinge(javax.servlet.ServletOutputStream out,
java.lang.Exception e,
Context context)
Deprecated. use whinge(ServletOutputStream,Exception,Context,boolean) |
protected void |
whinge(javax.servlet.ServletOutputStream out,
java.lang.Exception e,
Context context,
boolean inprogress)
Last line-of-defence error reporter. |
| Methods inherited from class uk.co.weft.htform.Servlet |
addCookie, addCookie, coerceCookiesToContext, coerceToContext, coerceToContext, coerceToContext, coerceToContext, coerceToUrl, createContext, doGet, doPost, fixupMagicValues, generateContent, getCalendar, getContentType, getDebug, getLocale, getOutputStream, getResource, getResourceString, getServletInfo, grs, grs, handleAction, handleCookies, handleRedirect, init, makeReady, outputRedirectBlock, setCookieValues, storeOnSession |
| Methods inherited from class uk.co.weft.maybeupload.MaybeUploadServlet |
doDelete, doHead, doOptions, doPut, doTrace, getUploadDir, getUploadURL, service |
| Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service |
| Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, 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 java.lang.String EXCEPTIONHANDLERCLASSCONFIGTOKEN
| Constructor Detail |
public WithExceptionHandlerServlet()
| Method Detail |
public void init(Context config)
throws InitialisationException
init in class ServletInitialisationException
protected void whinge(javax.servlet.ServletOutputStream out,
java.lang.Exception e)
throws javax.servlet.ServletException
whinge in class Servletout - an output stream to print one - an exception to whinge about
javax.servlet.ServletException
protected void whinge(javax.servlet.ServletOutputStream out,
java.lang.Exception e,
Context context)
throws javax.servlet.ServletException
whinge in class Servletout - an output stream to print one - an exception to whinge aboutcontext - the context in which the problem occurred.
javax.servlet.ServletException
protected void whinge(javax.servlet.ServletOutputStream out,
java.lang.Exception e,
Context context,
boolean inprogress)
throws javax.servlet.ServletException
out - an output stream to print one - an exception to whinge aboutcontext - the context in which the problem occurred.inprogress - true if the exception happened when the page was
already in the process of being generated, and the HEAD section
has alreade been sent; else false.
javax.servlet.ServletException
|
jacquard 1.12.0 by The Web Engineering Factory and Toolworks | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||