Class DefaultCasWebflowAuthenticationExceptionHandler
java.lang.Object
org.apereo.cas.web.flow.authentication.DefaultCasWebflowAuthenticationExceptionHandler
- All Implemented Interfaces:
CasWebflowExceptionHandler<org.apereo.cas.authentication.AuthenticationException>,org.springframework.core.Ordered
public class DefaultCasWebflowAuthenticationExceptionHandler
extends Object
implements CasWebflowExceptionHandler<org.apereo.cas.authentication.AuthenticationException>
- Since:
- 6.1.0
-
Field Summary
Fields inherited from interface org.apereo.cas.web.flow.authentication.CasWebflowExceptionHandler
UNKNOWNFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionDefaultCasWebflowAuthenticationExceptionHandler(CasWebflowExceptionCatalog errors, String messageBundlePrefix) Creates a newDefaultCasWebflowAuthenticationExceptionHandlerinstance. -
Method Summary
Modifier and TypeMethodDescriptionOrdered list of error classes that this class knows how to handle.String appended to exception class name to create a message bundle key for that particular error.intgetOrder()org.springframework.webflow.execution.Eventhandle(org.apereo.cas.authentication.AuthenticationException exception, org.springframework.webflow.execution.RequestContext requestContext) Handle event.voidsetOrder(int order) booleanSupports exception.
-
Constructor Details
-
DefaultCasWebflowAuthenticationExceptionHandler
public DefaultCasWebflowAuthenticationExceptionHandler(CasWebflowExceptionCatalog errors, String messageBundlePrefix) Creates a newDefaultCasWebflowAuthenticationExceptionHandlerinstance.- Parameters:
errors- Ordered list of error classes that this class knows how to handle.messageBundlePrefix- String appended to exception class name to create a message bundle key for that particular error.
-
-
Method Details
-
handle
public org.springframework.webflow.execution.Event handle(org.apereo.cas.authentication.AuthenticationException exception, org.springframework.webflow.execution.RequestContext requestContext) Description copied from interface:CasWebflowExceptionHandlerHandle event.- Specified by:
handlein interfaceCasWebflowExceptionHandler<org.apereo.cas.authentication.AuthenticationException>- Parameters:
exception- the exceptionrequestContext- the request context- Returns:
- the event
-
supports
public boolean supports(Exception exception, org.springframework.webflow.execution.RequestContext requestContext) Description copied from interface:CasWebflowExceptionHandlerSupports exception.- Specified by:
supportsin interfaceCasWebflowExceptionHandler<org.apereo.cas.authentication.AuthenticationException>- Parameters:
exception- the exceptionrequestContext- the request context- Returns:
- true /false
-
getErrors
Ordered list of error classes that this class knows how to handle. -
getMessageBundlePrefix
String appended to exception class name to create a message bundle key for that particular error. -
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
setOrder
public void setOrder(int order)
-