net.unicon.cas.mfa.web.flow.ConfigurableSpringWebflowExceptionHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cas-mfa-java Show documentation
Show all versions of cas-mfa-java Show documentation
This module is intended to include all the Java you need to add to a CAS implementation
to take advantage of the extended multifactor authentication features in this project.
package net.unicon.cas.mfa.web.flow;
import org.springframework.webflow.engine.support.TransitionExecutingFlowExecutionExceptionHandler;
/**
* A extension of {@link TransitionExecutingFlowExecutionExceptionHandler} that exposes configuration
* for convenience directly via a constructor, such that handlers can be configured via explicit spring beans.
* @author Misagh Moayyed
*/
public final class ConfigurableSpringWebflowExceptionHandler extends TransitionExecutingFlowExecutionExceptionHandler {
/**
* Initialize the handler with the exception class to handle, and the state to which the flow must move.
* @param exceptionClass exception class to handle
* @param state state to which the flow moves.
*/
public ConfigurableSpringWebflowExceptionHandler(final Class exceptionClass, final String state) {
super();
add(exceptionClass, state);
}
}