|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hyperic.hq.ui.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,
java.util.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,
java.lang.String param,
java.lang.String value)
|
static java.lang.String |
changeUrl(java.lang.String url,
java.util.Map params)
Change a url by appending all of the params to it. |
static java.util.List |
convertEnumsToLabelBeans(java.util.List enums)
Convert a list of HypericEnum s into a list of
LabelValueBean s |
static java.lang.String |
findReturnPath(org.apache.struts.action.ActionMapping mapping,
java.util.Map params)
Return a URL path that will return control to the current action. |
static java.lang.String |
findReturnPath(org.apache.struts.action.ActionMapping mapping,
java.lang.String param,
java.lang.String value)
|
static java.util.List |
getConfigValues(ConfigSchema schema,
ConfigResponse config)
|
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, java.util.Map params) throws java.lang.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
java.lang.Exception
public static org.apache.struts.action.ActionForward changeForwardPath(org.apache.struts.action.ActionForward forward, java.lang.String param, java.lang.String value) throws java.lang.Exception
java.lang.Exception
public static java.lang.String changeUrl(java.lang.String url, java.util.Map params) throws java.lang.Exception
params
to it.
url
- the original URLparams
- the name-value pairs to append
java.lang.Exception
public static java.lang.String findReturnPath(org.apache.struts.action.ActionMapping mapping, java.util.Map params) throws java.lang.Exception
mapping
- the ActionMapping describing the current
action's forwardsparam
- the name of the path parameter to addvalue
- the value of the parameter to add
javax.servlet.ServletException
- if encoding the path parameter fails or input has not been set
java.lang.Exception
public static java.lang.String findReturnPath(org.apache.struts.action.ActionMapping mapping, java.lang.String param, java.lang.String value) throws java.lang.Exception
java.lang.Exception
public static java.util.List getConfigValues(ConfigSchema schema, ConfigResponse config)
public static java.util.List convertEnumsToLabelBeans(java.util.List enums)
HypericEnum
s into a list of
LabelValueBean
s
|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |