|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.enterprise.gui.legacy.util.ActionUtils
public class ActionUtils
Utilities class that provides general convenience methods.
| Constructor Summary | |
|---|---|
ActionUtils()
|
|
| Method Summary | |
|---|---|
static org.apache.struts.action.ActionForward |
changeForwardPath(org.apache.struts.action.ActionForward forward,
Map params)
Return a new ActionForward based on the given one but with the specified parameter name and value
added to the new forward's path. |
static org.apache.struts.action.ActionForward |
changeForwardPath(org.apache.struts.action.ActionForward forward,
String param,
String value)
|
static String |
changeUrl(String url,
Map params)
Change a url by appending all of the params to it. |
static String |
findReturnPath(org.apache.struts.action.ActionMapping mapping,
Map params)
Return a URL path that will return control to the current action. |
static String |
findReturnPath(org.apache.struts.action.ActionMapping mapping,
String param,
String value)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ActionUtils()
| Method Detail |
|---|
public static org.apache.struts.action.ActionForward changeForwardPath(org.apache.struts.action.ActionForward forward,
Map params)
throws Exception
ActionForward based on the given one but with the specified parameter name and value
added to the new forward's path. NOTE: this method would be unnecessary if Struts allowed us to "unfreeze" the
ForwardConfig that is the superclass of the forward.
forward - the ActionForward on which the new forward is basedparam - the name of the path parameter to addvalue - the value of the parameter to add
javax.servlet.ServletException - if encoding the path parameter fails
Exception
public static org.apache.struts.action.ActionForward changeForwardPath(org.apache.struts.action.ActionForward forward,
String param,
String value)
throws Exception
Exception
public static String changeUrl(String url,
Map params)
throws Exception
params to it.
url - the original URLparams - the name-value pairs to append
Exception
public static String findReturnPath(org.apache.struts.action.ActionMapping mapping,
Map params)
throws Exception
mapping - the ActionMapping describing the current action's forwardsparams - a map containing the path parameters to add
javax.servlet.ServletException - if encoding the path parameter fails or input has not been set
Exception
public static String findReturnPath(org.apache.struts.action.ActionMapping mapping,
String param,
String value)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||