Class NavigationHandlerWrapper
- All Implemented Interfaces:
FacesWrapper<NavigationHandler>
NavigationHandlerWrapper provides a simple implementation of
NavigationHandler that can be subclassed by developers wishing to provide specialized behavior to an existing
NavigationHandler instance. The default implementation of all methods is to call through to the wrapped
NavigationHandler instance.
Usage: extend this class and push the implementation being wrapped to the constructor and use getWrapped() to
access the instance being wrapped.
- Since:
- 2.2
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Use the other constructor taking the implementation being wrapped.If this navigation handler has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetNavigationCase(FacesContext context, String fromAction, String outcome) Return theNavigationCaserepresenting the navigation that would be taken hadNavigationHandler.handleNavigation(FacesContext, String, String)been called with the same arguments ornullif there is no such case.getNavigationCase(FacesContext context, String fromAction, String outcome, String toFlowDocumentId) Return theNavigationCaserepresenting the navigation that would be taken hadNavigationHandler.handleNavigation(FacesContext, String, String)been called with the same arguments ornullif there is no such case.Return aMap<String, Set<NavigationCase>>where the keys are<from-view-id>values and the values areSet<NavigationCase>where each element in the Set is aNavigationCasethat applies to that<from-view-id>.A class that implements this interface uses this method to return an instance of the class being wrapped.voidhandleNavigation(FacesContext context, String fromAction, String outcome) Perform navigation processing based on the state information in the specifiedFacesContext, plus the outcome string returned by an executed application action.voidhandleNavigation(FacesContext context, String fromAction, String outcome, String toFlowDocumentId) Overloaded variant ofNavigationHandler.handleNavigation(jakarta.faces.context.FacesContext, java.lang.String, java.lang.String)that allows the caller to provide the defining document id for a flow to be entered by this navigation.voidinspectFlow(FacesContext context, Flow flow) Called by the flow system to cause the flow to be inspected for navigation rules.voidperformNavigation(String outcome) A convenience method to signal the Jakarta Faces implementation to perform navigation with the provided outcome.
-
Constructor Details
-
NavigationHandlerWrapper
Deprecated.Use the other constructor taking the implementation being wrapped.
-
-
Method Details
-
getWrapped
Description copied from interface:FacesWrapperA class that implements this interface uses this method to return an instance of the class being wrapped.
- Specified by:
getWrappedin interfaceFacesWrapper<NavigationHandler>- Returns:
- the wrapped instance.
-
inspectFlow
Description copied from class:NavigationHandlerCalled by the flow system to cause the flow to be inspected for navigation rules.
Historically this method was declared in
ConfigurableNavigationHandlersince 2.2. For backward compatibility with earlier implementations, a default implementation is provided which does nothing.- Overrides:
inspectFlowin classNavigationHandler- Parameters:
context- the Faces context.flow- the flow.
-