Class DefaultCasWebflowAbstractTicketExceptionHandler
- java.lang.Object
-
- org.apereo.cas.web.flow.authentication.DefaultCasWebflowAbstractTicketExceptionHandler
-
- All Implemented Interfaces:
CasWebflowExceptionHandler<org.apereo.cas.ticket.AbstractTicketException>,org.springframework.core.Ordered
public class DefaultCasWebflowAbstractTicketExceptionHandler extends java.lang.Object implements CasWebflowExceptionHandler<org.apereo.cas.ticket.AbstractTicketException>
- Since:
- 6.1.0
-
-
Field Summary
-
Fields inherited from interface org.apereo.cas.web.flow.authentication.CasWebflowExceptionHandler
UNKNOWN
-
-
Constructor Summary
Constructors Constructor Description DefaultCasWebflowAbstractTicketExceptionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.webflow.execution.Eventhandle(org.apereo.cas.ticket.AbstractTicketException exception, org.springframework.webflow.execution.RequestContext requestContext)Handle event.protected java.lang.StringhandleAbstractTicketException(org.apereo.cas.ticket.AbstractTicketException e, org.springframework.webflow.execution.RequestContext requestContext)Maps anAbstractTicketExceptiononto a state name equal to the simple class name of the exception with highest precedence.booleansupports(java.lang.Exception exception, org.springframework.webflow.execution.RequestContext requestContext)Supports exception.
-
-
-
Method Detail
-
handle
public org.springframework.webflow.execution.Event handle(org.apereo.cas.ticket.AbstractTicketException exception, org.springframework.webflow.execution.RequestContext requestContext)Description copied from interface:CasWebflowExceptionHandlerHandle event.- Specified by:
handlein interfaceCasWebflowExceptionHandler<org.apereo.cas.ticket.AbstractTicketException>- Parameters:
exception- the exceptionrequestContext- the request context- Returns:
- the event
-
supports
public boolean supports(java.lang.Exception exception, org.springframework.webflow.execution.RequestContext requestContext)Description copied from interface:CasWebflowExceptionHandlerSupports exception.- Specified by:
supportsin interfaceCasWebflowExceptionHandler<org.apereo.cas.ticket.AbstractTicketException>- Parameters:
exception- the exceptionrequestContext- the request context- Returns:
- true/false
-
handleAbstractTicketException
protected java.lang.String handleAbstractTicketException(org.apereo.cas.ticket.AbstractTicketException e, org.springframework.webflow.execution.RequestContext requestContext)Maps anAbstractTicketExceptiononto 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 inRootCasException.getCode(). If no match is found, "UNKNOWN" is returned.- Parameters:
e- Ticket exception to handle.requestContext- the spring context- Returns:
- Name of next flow state to transition to or "UNKNOWN"
-
-