org.apache.shale.test.mock
Class MockNavigationHandler

java.lang.Object
  extended by javax.faces.application.NavigationHandler
      extended by org.apache.shale.test.mock.MockNavigationHandler

public class MockNavigationHandler
extends javax.faces.application.NavigationHandler

Mock implementation of NavigationHandler.

$Id$


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

MockNavigationHandler

public MockNavigationHandler()

Construct a default instance.

Method Detail

addDestination

public void addDestination(String outcome,
                           String viewId)

Add a outcome-viewId pair to the destinations map.

Parameters:
outcome - Logical outcome string
viewId - Destination view identifier

handleNavigation

public void handleNavigation(javax.faces.context.FacesContext context,
                             String action,
                             String outcome)

Process the specified navigation request.

Specified by:
handleNavigation in class javax.faces.application.NavigationHandler
Parameters:
context - FacesContext for the current request
action - Action method being executed
outcome - Logical outcome from this action method


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.