public class VelocityErrorHandler extends AbstractErrorHandler
Attribute Name | Object Type | Value |
requestError | Throwable |
Error that was thrown that triggered the invocation of this handler. |
Modifier and Type | Field and Description |
---|---|
private org.slf4j.Logger |
log
Class logger.
|
private String |
templatePath
Location of the template to use to render the error page.
|
private org.apache.velocity.app.VelocityEngine |
velocityEngine
Velocity engine used to render error page.
|
ERROR_KEY
Constructor and Description |
---|
VelocityErrorHandler(org.apache.velocity.app.VelocityEngine engine,
String template)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
initialize()
Initializes this error handler by loading the velocity template into the engine.
|
void |
processRequest(InTransport in,
OutTransport out)
Processes an incoming request.
|
private final org.slf4j.Logger log
private org.apache.velocity.app.VelocityEngine velocityEngine
private String templatePath
public VelocityErrorHandler(org.apache.velocity.app.VelocityEngine engine, String template)
engine
- engine used to render error pagetemplate
- classpath location of template used to render error pagepublic void initialize() throws IOException
IOException
- thrown if there is a problem reading the template filepublic void processRequest(InTransport in, OutTransport out)
processRequest
in interface ProfileHandler
processRequest
in class AbstractErrorHandler
in
- the incoming request transportout
- the outgoing response transportCopyright © 1999-2012. All Rights Reserved.