|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TemplateExceptionFilter
TemplateExceptionFilter is an interface to exception filters providing an error message template. By default, the error message is produced by a static exception class specific template for all applications. If the template is not defined, an HTTP error will be produced.
Implementations may provide more advanced template handling.
Note that the template must be specified relative to some of the template engine specific root locations.
Method Summary | |
---|---|
String |
getDefaultTemplate()
Gets the default template for this exception class. |
String |
getDefaultTemplate(String className)
Gets the default template for the named exception class. |
String |
getErrorTemplate()
Gets the error template. |
void |
setDefaultTemplate(String className,
String template)
Sets the default template for the names exception class. |
void |
setErrorTemplate(String template)
Sets the error template. |
Methods inherited from interface org.norther.tammi.spray.filter.ExceptionFilter |
---|
getLocalizedMessage, getMessage, getStatusCode |
Methods inherited from interface javax.servlet.Filter |
---|
destroy, doFilter, init |
Method Detail |
---|
String getErrorTemplate()
void setErrorTemplate(String template)
template
- the error template.String getDefaultTemplate()
String getDefaultTemplate(String className)
className
- the exception class name.
void setDefaultTemplate(String className, String template)
className
- the exception class name.template
- the default template.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |