org.apache.struts.action
Class ActionForwards
java.lang.Object
org.apache.struts.action.ActionForwards
- 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:
- Craig R. McClanahan
private FastHashMap | forwards - The collection of ActionForward instances, keyed by logical name.
|
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.
|
forwards
private FastHashMap forwards
The collection of ActionForward instances, keyed by logical name.
addForward
public void addForward(ActionForward forward)
Register a logical forwarding to the set configured for this servlet.
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
.
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.
forward
- The forwarding to be deregistered
setFast
public void setFast(boolean fast)
Set the "fast" mode flag.
fast
- The new fast mode flag
Copyright B) 2000-2005 - Apache Software Foundation