Class ViewExpiredExceptionHandler

java.lang.Object
jakarta.faces.context.ExceptionHandler
jakarta.faces.context.ExceptionHandlerWrapper
org.imixs.workflow.faces.util.ViewExpiredExceptionHandler
All Implemented Interfaces:
jakarta.faces.event.FacesListener, jakarta.faces.event.SystemEventListener, jakarta.faces.FacesWrapper<jakarta.faces.context.ExceptionHandler>, EventListener

public class ViewExpiredExceptionHandler extends jakarta.faces.context.ExceptionHandlerWrapper
This class is used to handle expired sessions. In case a session was expired the handler caught the ViewExpiredException and redirects into a new page. This class expects a jsf page called 'sessionexpired.xhtml' in the web root context!
Author:
rsoika
See Also:
  • burns ' dealing_gracefully_with_viewexpiredexception' https://www.nofluffjuststuff.com/blog/ed_burns/2009/09/ dealing_gracefully_with_viewexpiredexception_in_jsf2
  • Constructor Summary

    Constructors
    Constructor
    Description
    ViewExpiredExceptionHandler(jakarta.faces.context.ExceptionHandler wrapped)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    jakarta.faces.context.ExceptionHandler
     
    void
     

    Methods inherited from class jakarta.faces.context.ExceptionHandlerWrapper

    getHandledExceptionQueuedEvent, getHandledExceptionQueuedEvents, getRootCause, getUnhandledExceptionQueuedEvents, isListenerForSource, processEvent

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ViewExpiredExceptionHandler

      public ViewExpiredExceptionHandler(jakarta.faces.context.ExceptionHandler wrapped)
  • Method Details

    • getWrapped

      public jakarta.faces.context.ExceptionHandler getWrapped()
      Specified by:
      getWrapped in interface jakarta.faces.FacesWrapper<jakarta.faces.context.ExceptionHandler>
      Overrides:
      getWrapped in class jakarta.faces.context.ExceptionHandlerWrapper
    • handle

      public void handle() throws jakarta.faces.FacesException
      Overrides:
      handle in class jakarta.faces.context.ExceptionHandlerWrapper
      Throws:
      jakarta.faces.FacesException