Class DefaultCasWebflowAbstractTicketExceptionHandler

    • Field Summary

      • Fields inherited from interface org.springframework.core.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.webflow.execution.Event handle​(org.apereo.cas.ticket.AbstractTicketException exception, org.springframework.webflow.execution.RequestContext requestContext)
      Handle event.
      protected java.lang.String handleAbstractTicketException​(org.apereo.cas.ticket.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.
      boolean supports​(java.lang.Exception exception, org.springframework.webflow.execution.RequestContext requestContext)
      Supports exception.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.springframework.core.Ordered

        getOrder
    • Constructor Detail

      • DefaultCasWebflowAbstractTicketExceptionHandler

        public DefaultCasWebflowAbstractTicketExceptionHandler()
    • 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: CasWebflowExceptionHandler
        Handle event.
        Specified by:
        handle in interface CasWebflowExceptionHandler<org.apereo.cas.ticket.AbstractTicketException>
        Parameters:
        exception - the exception
        requestContext - the request context
        Returns:
        the event
      • supports

        public boolean supports​(java.lang.Exception exception,
                                org.springframework.webflow.execution.RequestContext requestContext)
        Description copied from interface: CasWebflowExceptionHandler
        Supports exception.
        Specified by:
        supports in interface CasWebflowExceptionHandler<org.apereo.cas.ticket.AbstractTicketException>
        Parameters:
        exception - the exception
        requestContext - 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 an 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, "UNKNOWN" is returned.
        Parameters:
        e - Ticket exception to handle.
        requestContext - the spring context
        Returns:
        Name of next flow state to transition to or "UNKNOWN"