|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.struts.config.ForwardConfig org.apache.struts.action.ActionForward com.oroad.stxx.action.ActionForward
Holds the information in a Struts forward element. Used with Struts 1.0.
Field Summary | |
protected java.lang.String |
root
The XML root node of this forward. |
protected java.lang.String |
transform
The name of the transform tag |
protected ActionTransforms |
transforms
The set of ActionTransform objects associated with this mapping. |
Fields inherited from class org.apache.struts.config.ForwardConfig |
configured, contextRelative, name, path, redirect |
Constructor Summary | |
ActionForward()
Construct a new instance with default values. |
|
ActionForward(java.lang.String path)
Construct a new instance with the specified path. |
|
ActionForward(java.lang.String path,
boolean redirect)
Construct a new instance with the specified path and redirect flag. |
Method Summary | |
void |
addTransform(ActionTransform transform)
Add a new ActionTransform associated with this mapping. |
ActionTransform |
findTransform(java.lang.String name)
Return the ActionTransform with the specified name, if any;
otherwise return null . |
java.lang.String[] |
findTransforms()
Return the logical names of all locally defined transforms for this mapping. |
java.lang.String |
getName()
Gets the name of the forward |
java.lang.String |
getPath()
Gets the path attribute |
boolean |
getRedirect()
Gets the redirect attribute |
java.lang.String |
getRoot()
Deprecated. This shouldn't be used any longer |
java.lang.String |
getTransform()
Return the transform path for this mapping. |
boolean |
hasTransforms()
Returns true or false depending on if the ActionForward has a transform tag under it or not |
void |
removeTransform(ActionTransform transform)
Remove a ActionTransform associated with this mapping. |
void |
setName(java.lang.String name)
Sets the name of the forward |
void |
setPath(java.lang.String path)
Sets the path attribute |
void |
setRedirect(boolean redirect)
Sets the redirect attribute |
void |
setRoot(java.lang.String root)
Deprecated. This shouldn't be used any longer |
void |
setTransform(java.lang.String transform)
Set the transform path for this mapping. |
java.lang.String |
toString()
Returns a String representation of the forward |
Methods inherited from class org.apache.struts.config.ForwardConfig |
freeze, getContextRelative, setContextRelative |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.String transform
protected ActionTransforms transforms
protected java.lang.String root
Constructor Detail |
public ActionForward()
public ActionForward(java.lang.String path)
path
- Path for this instancepublic ActionForward(java.lang.String path, boolean redirect)
path
- Path for this instanceredirect
- Redirect flag for this instanceMethod Detail |
public boolean hasTransforms()
public java.lang.String getTransform()
public void setTransform(java.lang.String transform)
transform
- The transform path for this mappingpublic void addTransform(ActionTransform transform)
ActionTransform
associated with this mapping.
transform
- The ActionTransform to be addedpublic java.lang.String[] findTransforms()
public ActionTransform findTransform(java.lang.String name)
ActionTransform
with the specified name, if any;
otherwise return null
. If there is no locally defined
transforming for the specified name, but a global transforms collection
has been associated with this mapping, the global collection will also
be searched before returning.
name
- Name of the transform entry to be returned
public void removeTransform(ActionTransform transform)
ActionTransform
associated with this mapping.
transform
- The ActionTransform to be removedpublic java.lang.String getName()
public void setName(java.lang.String name)
name
- The new name valuepublic java.lang.String getRoot()
public void setRoot(java.lang.String root)
root
- The new root valuepublic java.lang.String getPath()
public void setPath(java.lang.String path)
path
- The new path valuepublic boolean getRedirect()
public void setRedirect(boolean redirect)
redirect
- The new redirect valuepublic java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |