|
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.Objectuk.co.weft.htform.ResourceConsumerImpl
uk.co.weft.exceptionhandler.AlertExceptionHandler
An exception handler which sends mail to the system administrator, and apologises to the user. This class knows about the following configuration paramater:
In addition, all the configuration parameters used by Alert should be passed.
Alert| Field Summary | |
protected InternetAddress |
adminEmail
the address to sent an alert to, when an exception occurs |
static java.lang.String |
ADMINEMAILCONFIGTOKEN
A token on which to look in the configuration for the administrator's email address |
protected Alert |
sender
the alert agent which sends alerts to the sysadmin when an exception occurs |
| Fields inherited from class uk.co.weft.htform.ResourceConsumerImpl |
resourceBundleName |
| Fields inherited from interface uk.co.weft.htform.ResourceConsumer |
RESOURCEBUNDLEMAGICTOKEN |
| Constructor Summary | |
AlertExceptionHandler()
|
|
| Method Summary | |
void |
init(Context config)
initialise me with this configuration |
void |
whinge(javax.servlet.ServletOutputStream out,
java.lang.Exception e,
Context context)
whinge by generating and sending mail to the system administrator |
| Methods inherited from class uk.co.weft.htform.ResourceConsumerImpl |
getContextOrResource, getResource, getResourceOrContext, getResourceString, grs, grs |
| 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 ADMINEMAILCONFIGTOKEN
protected Alert sender
protected InternetAddress adminEmail
| Constructor Detail |
public AlertExceptionHandler()
| Method Detail |
public void init(Context config)
throws InitialisationException
ExceptionHandler
init in interface ExceptionHandlerinit in class ResourceConsumerImplInitialisationException
public void whinge(javax.servlet.ServletOutputStream out,
java.lang.Exception e,
Context context)
throws javax.servlet.ServletException
whinge in interface ExceptionHandlerout - an output stream on which things can be printed to the usere - the exception being handledcontext - the context in which it's being handled
javax.servlet.ServletException - if something even worse happens (try not to do
this!)
|
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 | |||||||||