org.apache.myfaces.application
Class NavigationHandlerImpl

java.lang.Object
  extended by javax.faces.application.NavigationHandler
      extended by javax.faces.application.ConfigurableNavigationHandler
          extended by org.apache.myfaces.application.NavigationHandlerImpl

public class NavigationHandlerImpl
extends ConfigurableNavigationHandler

Version:
$Revision: 1518455 $ $Date: 2013-08-28 21:49:27 -0500 (Wed, 28 Aug 2013) $
Author:
Thomas Spiegl (latest modification by $Author: lu4242 $), Anton Koinov

Constructor Summary
NavigationHandlerImpl()
           
 
Method Summary
 String beforeNavigation(String viewId)
          TODO Invoked by the navigation handler before the new view component is created.
 NavigationCase getNavigationCase(FacesContext facesContext, String fromAction, String outcome)
          Returns the navigation case that applies for the given action and outcome
 Map<String,Set<NavigationCase>> getNavigationCases()
           
protected  NavigationHandlerSupport getNavigationHandlerSupport()
           
 String getViewId(FacesContext context, String fromAction, String outcome)
          Returns the view ID that would be created for the given action and outcome
 void handleNavigation(FacesContext facesContext, String fromAction, String outcome)
           
 void setNavigationHandlerSupport(NavigationHandlerSupport navigationHandlerSupport)
           
 
Methods inherited from class javax.faces.application.ConfigurableNavigationHandler
performNavigation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NavigationHandlerImpl

public NavigationHandlerImpl()
Method Detail

handleNavigation

public void handleNavigation(FacesContext facesContext,
                             String fromAction,
                             String outcome)
Specified by:
handleNavigation in class NavigationHandler

getNavigationHandlerSupport

protected NavigationHandlerSupport getNavigationHandlerSupport()
Returns:
the navigationHandlerSupport

setNavigationHandlerSupport

public void setNavigationHandlerSupport(NavigationHandlerSupport navigationHandlerSupport)

getNavigationCase

public NavigationCase getNavigationCase(FacesContext facesContext,
                                        String fromAction,
                                        String outcome)
Returns the navigation case that applies for the given action and outcome

Specified by:
getNavigationCase in class ConfigurableNavigationHandler

getViewId

public String getViewId(FacesContext context,
                        String fromAction,
                        String outcome)
Returns the view ID that would be created for the given action and outcome


beforeNavigation

public String beforeNavigation(String viewId)
TODO Invoked by the navigation handler before the new view component is created.

Parameters:
viewId - The view ID to be created
Returns:
The view ID that should be used instead. If null, the view ID passed in will be used without modification.

getNavigationCases

public Map<String,Set<NavigationCase>> getNavigationCases()
Specified by:
getNavigationCases in class ConfigurableNavigationHandler


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.