|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.StructuredForm
public class StructuredForm
Obtains the structured form data from StaplerRequest.
See http://wiki.jenkins-ci.org/display/JENKINS/Structured+Form+Submission
| Constructor Summary | |
|---|---|
StructuredForm()
|
|
| Method Summary | |
|---|---|
static net.sf.json.JSONObject |
get(org.kohsuke.stapler.StaplerRequest req)
Deprecated. Use StaplerRequest.getSubmittedForm(). Since 1.238. |
static List<net.sf.json.JSONObject> |
toList(net.sf.json.JSONObject parent,
String propertyName)
Retrieves the property of the given object and returns it as a list of JSONObject. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StructuredForm()
| Method Detail |
|---|
public static net.sf.json.JSONObject get(org.kohsuke.stapler.StaplerRequest req)
throws javax.servlet.ServletException
StaplerRequest.getSubmittedForm(). Since 1.238.
javax.servlet.ServletException
public static List<net.sf.json.JSONObject> toList(net.sf.json.JSONObject parent,
String propertyName)
JSONObject.
If the value doesn't exist, this method returns an empty list. If the value is
a JSONObject, this method will return a singleton list. If it's a JSONArray,
the contents will be returned as a list.
Because of the way structured form submission work, this is convenient way of handling repeated multi-value entries.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||