|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.shibboleth.common.profile.AbstractErrorHandler
edu.internet2.middleware.shibboleth.common.profile.provider.VelocityErrorHandler
public class VelocityErrorHandler
An error handler that render an error page by means of evaluating a Velocity template.. The following attributes are available within the velocity context page:
Attribute Name | Object Type | Value |
requestError | Throwable |
Error that was thrown that triggered the invocation of this handler. |
Field Summary | |
---|---|
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. |
Fields inherited from class edu.internet2.middleware.shibboleth.common.profile.AbstractErrorHandler |
---|
ERROR_KEY |
Constructor Summary | |
---|---|
VelocityErrorHandler(org.apache.velocity.app.VelocityEngine engine,
String template)
Constructor. |
Method Summary | |
---|---|
void |
initialize()
Initializes this error handler by loading the velocity template into the engine. |
void |
processRequest(org.opensaml.ws.transport.InTransport in,
org.opensaml.ws.transport.OutTransport out)
Processes an incoming request. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final org.slf4j.Logger log
private org.apache.velocity.app.VelocityEngine velocityEngine
private String templatePath
Constructor Detail |
---|
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 pageMethod Detail |
---|
public void initialize() throws IOException
IOException
- thrown if there is a problem reading the template filepublic void processRequest(org.opensaml.ws.transport.InTransport in, org.opensaml.ws.transport.OutTransport out)
processRequest
in interface ProfileHandler
processRequest
in class AbstractErrorHandler
in
- the incoming request transportout
- the outgoing response transport
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |