Package hudson
Class StructuredForm
- java.lang.Object
-
- hudson.StructuredForm
-
public class StructuredForm extends Object
Obtains the structured form data fromStaplerRequest. See the developer documentation.- Author:
- Kohsuke Kawaguchi
-
-
Constructor Summary
Constructors Constructor Description StructuredForm()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static net.sf.json.JSONObjectget(org.kohsuke.stapler.StaplerRequest req)Deprecated.UseStaplerRequest.getSubmittedForm().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 ofJSONObject.
-
-
-
Method Detail
-
get
@Deprecated public static net.sf.json.JSONObject get(org.kohsuke.stapler.StaplerRequest req) throws javax.servlet.ServletException
Deprecated.UseStaplerRequest.getSubmittedForm(). Since 1.238.- Throws:
javax.servlet.ServletException
-
toList
public 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 ofJSONObject.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 aJSONArray, 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.
- Since:
- 1.233
-
-