org.apache.struts.action

Class ActionForwards

Implemented Interfaces:
Serializable

public class ActionForwards
extends java.lang.Object
implements Serializable

Encapsulate a collection of ActionForward objects that can be administered and searched, while hiding the internal implementation. ModuleConfig and ActionConfig

Version:
$Revision: 1.9 $ $Date: 2003/04/15 00:18:45 $

Author:
Craig R. McClanahan

Field Summary

private FastHashMap
forwards
The collection of ActionForward instances, keyed by logical name.

Method Summary

void
addForward(ActionForward forward)
Register a logical forwarding to the set configured for this servlet.
ActionForward
findForward(String name)
Return the forwarding associated with the specified logical name, if any; otherwise return null.
String[]
findForwards()
Return the set of logical names for forwards defined in this collection.
boolean
getFast()
Return the "fast" mode flag.
void
removeForward(ActionForward forward)
Deregister a forwarding from the set configured for this servlet.
void
setFast(boolean fast)
Set the "fast" mode flag.

Field Details

forwards

private FastHashMap forwards
The collection of ActionForward instances, keyed by logical name.

Method Details

addForward

public void addForward(ActionForward forward)
Register a logical forwarding to the set configured for this servlet.

Parameters:
forward - The forwarding to be added


findForward

public ActionForward findForward(String name)
Return the forwarding associated with the specified logical name, if any; otherwise return null.

Parameters:
name - Logical name of the requested forwarding


findForwards

public String[] findForwards()
Return the set of logical names for forwards defined in this collection. If there are no such forwards, a zero-length array is returned.


getFast

public boolean getFast()
Return the "fast" mode flag.


removeForward

public void removeForward(ActionForward forward)
Deregister a forwarding from the set configured for this servlet.

Parameters:
forward - The forwarding to be deregistered


setFast

public void setFast(boolean fast)
Set the "fast" mode flag.

Parameters:
fast - The new fast mode flag


Copyright B) 2000-2005 - Apache Software Foundation