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 |
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 processRequest(InTransport in, OutTransport out)
processRequest in interface ProfileHandlerprocessRequest in class AbstractErrorHandlerin - the incoming request transportout - the outgoing response transportCopyright © 1999-2015. All Rights Reserved.