Package org.springframework.web.jsf
Class DecoratingNavigationHandler
java.lang.Object
jakarta.faces.application.NavigationHandler
org.springframework.web.jsf.DecoratingNavigationHandler
Base class for JSF NavigationHandler implementations that want
to be capable of decorating an original NavigationHandler.
Supports the standard JSF style of decoration (through a constructor argument)
as well as an overloaded handleNavigation
method with explicit
NavigationHandler argument (passing in the original NavigationHandler). Subclasses
are forced to implement this overloaded handleNavigation
method.
Standard JSF invocations will automatically delegate to the overloaded method,
with the constructor-injected NavigationHandler as argument.
- Since:
- 1.2.7
- Author:
- Juergen Hoeller
- See Also:
-
Constructor Summary
ModifierConstructorDescriptionprotected
Create a DecoratingNavigationHandler without fixed original NavigationHandler.protected
DecoratingNavigationHandler
(NavigationHandler originalNavigationHandler) Create a DecoratingNavigationHandler with fixed original NavigationHandler. -
Method Summary
Modifier and TypeMethodDescriptionprotected final void
callNextHandlerInChain
(FacesContext facesContext, String fromAction, String outcome, NavigationHandler originalNavigationHandler) Method to be called by subclasses when intending to delegate to the next handler in the NavigationHandler chain.final NavigationHandler
Return the fixed original NavigationHandler decorated by this handler, if any (that is, if passed in through the constructor).final void
handleNavigation
(FacesContext facesContext, String fromAction, String outcome) This implementation of the standard JSFhandleNavigation
method delegates to the overloaded variant, passing in constructor-injected NavigationHandler as argument.abstract void
handleNavigation
(FacesContext facesContext, String fromAction, String outcome, NavigationHandler originalNavigationHandler) SpecialhandleNavigation
variant with explicit NavigationHandler argument.Methods inherited from class jakarta.faces.application.NavigationHandler
handleNavigation
-
Constructor Details
-
DecoratingNavigationHandler
protected DecoratingNavigationHandler()Create a DecoratingNavigationHandler without fixed original NavigationHandler.
-
-
Method Details