public class MockNavigationHandler
extends javax.faces.application.NavigationHandler
Mock implementation of NavigationHandler
.
Constructor and Description |
---|
MockNavigationHandler()
Construct a default instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addDestination(String outcome,
String viewId)
Add a outcome-viewId pair to the destinations map.
|
void |
handleNavigation(javax.faces.context.FacesContext context,
String action,
String outcome)
Process the specified navigation request.
|
public MockNavigationHandler()
Construct a default instance.
public void addDestination(String outcome, String viewId)
Add a outcome-viewId pair to the destinations map.
outcome
- Logical outcome stringviewId
- Destination view identifierpublic void handleNavigation(javax.faces.context.FacesContext context, String action, String outcome)
Process the specified navigation request.
handleNavigation
in class javax.faces.application.NavigationHandler
context
- FacesContext
for the current requestaction
- Action method being executedoutcome
- Logical outcome from this action methodCopyright © 2004-2013 Apache Software Foundation. All Rights Reserved.