Package org.apache.myfaces.application
Class BackwardsCompatibleNavigationHandlerWrapper
- java.lang.Object
-
- javax.faces.application.NavigationHandler
-
- javax.faces.application.ConfigurableNavigationHandler
-
- org.apache.myfaces.application.BackwardsCompatibleNavigationHandlerWrapper
-
public class BackwardsCompatibleNavigationHandlerWrapper extends ConfigurableNavigationHandler
This class is used as a double wrapper for NavigationHandler and ConfigurableNavigationHandler to be backwards compatible to the pre JSF 2.0 NavigationHandlers which are not ConfigurableNavigationHandlers (since JSF 2.0 the standard NavigationHandler implementation has to inherit from ConfigurableNavigationHandler). It just passes through handleNavigation() to the wrapped NavigationHandler and getNavigationCase() and getNavigationCases() to the wrapped ConfigurableNavigationHandler.- Version:
- $Revision$ $Date$
- Author:
- Jakob Korherr (latest modification by $Author$)
-
-
Constructor Summary
Constructors Constructor Description BackwardsCompatibleNavigationHandlerWrapper(NavigationHandler wrapped, ConfigurableNavigationHandler doubleWrapped)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NavigationCase
getNavigationCase(FacesContext context, String fromAction, String outcome)
Map<String,Set<NavigationCase>>
getNavigationCases()
void
handleNavigation(FacesContext context, String fromAction, String outcome)
-
Methods inherited from class javax.faces.application.ConfigurableNavigationHandler
getNavigationCase, inspectFlow, performNavigation
-
Methods inherited from class javax.faces.application.NavigationHandler
handleNavigation
-
-
-
-
Constructor Detail
-
BackwardsCompatibleNavigationHandlerWrapper
public BackwardsCompatibleNavigationHandlerWrapper(NavigationHandler wrapped, ConfigurableNavigationHandler doubleWrapped)
-
-
Method Detail
-
getNavigationCase
public NavigationCase getNavigationCase(FacesContext context, String fromAction, String outcome)
- Specified by:
getNavigationCase
in classConfigurableNavigationHandler
-
getNavigationCases
public Map<String,Set<NavigationCase>> getNavigationCases()
- Specified by:
getNavigationCases
in classConfigurableNavigationHandler
-
handleNavigation
public void handleNavigation(FacesContext context, String fromAction, String outcome)
- Specified by:
handleNavigation
in classNavigationHandler
-
-