|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.faces.application.NavigationHandler org.apache.shale.test.mock.MockNavigationHandler
public class MockNavigationHandler
Mock implementation of NavigationHandler
.
Constructor Summary | |
---|---|
MockNavigationHandler()
Construct a default instance. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MockNavigationHandler()
Construct a default instance.
Method Detail |
---|
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 method
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |