src/main/java/com/cloudbees/jenkins/support/actions/SupportObjectAction.java
protected final List<ObjectComponent<T>> parseRequest(StaplerRequest req)
            throws ServletException, Descriptor.FormException {

        // Inspired by https://github.com/jenkinsci/workflow-job-plugin/blob/workflow-job-2.35/src/main/java/org/jenkinsci/plugins/workflow/job/properties/PipelineTriggersJobProperty.java
        DescribableList<ObjectComponent<T>, ObjectComponentDescriptor<T>> components =
                new DescribableList<>(Saveable.NOOP);
        try {
            JSONObject componentsSection = req.getSubmittedForm().getJSONObject("components");
            components.rebuild(req, componentsSection, getApplicableComponentsDescriptors());
        } catch (IOException e) {
            throw new Descriptor.FormException(e, "components");
        }
        return components;
    }
/**
     * Parse the stapler JSON output and retrieve configured components.
     * 
     * @param req the request
     * @return the {@link DescribableList} of components
     */
Parse the stapler JSON output and retrieve configured components.

@param req the request
@return the  DescribableList of components
Parse the stapler JSON output and retrieve configured components . @param req the request @return the DescribableList of components
protected final List<ObjectComponent<T>> parseRequest(StaplerRequest req)
            throws ServletException, Descriptor.FormException {
        DescribableList<ObjectComponent<T>, ObjectComponentDescriptor<T>> components =
                new DescribableList<>(Saveable.NOOP);
        try {
            JSONObject componentsSection = req.getSubmittedForm().getJSONObject("components");
            components.rebuild(req, componentsSection, getApplicableComponentsDescriptors());
        } catch (IOException e) {
            throw new Descriptor.FormException(e, "components");
        }
        return components;
    }
protected final List < ObjectComponent < T > > parseRequest ( StaplerRequest req ) throws ServletException , Descriptor . FormException { DescribableList < ObjectComponent < T > , ObjectComponentDescriptor < T > > components = new DescribableList < > ( Saveable . NOOP ) ; try { JSONObject componentsSection = req . getSubmittedForm ( ) . getJSONObject ( "components" ) ; components . rebuild ( req , componentsSection , getApplicableComponentsDescriptors ( ) ) ; } catch ( IOException e ) { throw new Descriptor . FormException ( e , "components" ) ; } return components ; }
Parse the stapler JSON output and retrieve configured components.
Parse the stapler JSON output and retrieve configured components .
// Inspired by https://github.com/jenkinsci/workflow-job-plugin/blob/workflow-job-2.35/src/main/java/org/jenkinsci/plugins/workflow/job/properties/PipelineTriggersJobProperty.java