public class AuthenticationExceptionHandlerAction
extends org.springframework.webflow.action.AbstractAction
AuthenticationException
raised from the authentication
layer:
errors
in list order. The first entry that matches determines the outcome state, which
is the simple class name of the exception.Constructor and Description |
---|
AuthenticationExceptionHandlerAction() |
AuthenticationExceptionHandlerAction(java.util.Set<java.lang.Class<? extends java.lang.Throwable>> errors) |
Modifier and Type | Method and Description |
---|---|
protected org.springframework.webflow.execution.Event |
doExecute(org.springframework.webflow.execution.RequestContext requestContext) |
java.util.Set<java.lang.Class<? extends java.lang.Throwable>> |
getErrors() |
java.lang.String |
handle(java.lang.Exception e,
org.springframework.webflow.execution.RequestContext requestContext)
Maps an authentication exception onto a state name.
|
protected java.lang.String |
handleAbstractTicketException(AbstractTicketException e,
org.springframework.webflow.execution.RequestContext requestContext)
Maps an
AbstractTicketException onto a state name equal to the simple class name of the exception with
highest precedence. |
protected java.lang.String |
handleAuthenticationException(AuthenticationException e,
org.springframework.webflow.execution.RequestContext requestContext)
Maps an authentication exception onto a state name equal to the simple class name of the handler errors.
|
public AuthenticationExceptionHandlerAction()
public AuthenticationExceptionHandlerAction(java.util.Set<java.lang.Class<? extends java.lang.Throwable>> errors)
public java.util.Set<java.lang.Class<? extends java.lang.Throwable>> getErrors()
public java.lang.String handle(java.lang.Exception e, org.springframework.webflow.execution.RequestContext requestContext)
e
- Authentication error to handle.requestContext
- the spring contextprotected java.lang.String handleAuthenticationException(AuthenticationException e, org.springframework.webflow.execution.RequestContext requestContext)
[messageBundlePrefix][exceptionClassSimpleName]
for for the first handler
error that is configured. If no match is found, is returned.e
- Authentication error to handle.requestContext
- the spring contextprotected java.lang.String handleAbstractTicketException(AbstractTicketException e, org.springframework.webflow.execution.RequestContext requestContext)
AbstractTicketException
onto a state name equal to the simple class name of the exception with
highest precedence. Also sets an ERROR severity message in the message context with the error code found in
RootCasException.getCode()
. If no match is found,
is returned.e
- Ticket exception to handle.requestContext
- the spring contextprotected org.springframework.webflow.execution.Event doExecute(org.springframework.webflow.execution.RequestContext requestContext)
doExecute
in class org.springframework.webflow.action.AbstractAction