Package hudson.plugins.build_timeout
Class BuildTimeOutUtility
java.lang.Object
hudson.plugins.build_timeout.BuildTimeOutUtility
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
bindJSONWithDescriptor
(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData, String fieldName, Class<T> expectedClazz) Construct an object from parameters input by a user.
-
Constructor Details
-
BuildTimeOutUtility
public BuildTimeOutUtility()
-
-
Method Details
-
bindJSONWithDescriptor
public static <T> T bindJSONWithDescriptor(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData, String fieldName, Class<T> expectedClazz) throws Descriptor.FormException Construct an object from parameters input by a user. Not usingDataBoundConstructor
, but usingDescriptor.newInstance(StaplerRequest, JSONObject)
.- Throws:
Descriptor.FormException
-