Class AbstractRestListParameterDescriptor

java.lang.Object
hudson.model.Descriptor<ParameterDefinition>
hudson.model.ParameterDefinition.ParameterDescriptor
io.jenkins.plugins.restlistparam.AbstractRestListParameterDescriptor
All Implemented Interfaces:
Saveable, Loadable, OnMaster
Direct Known Subclasses:
RestListParameterDefinition.DescriptorImpl, RestMultiListParameterDefinition.DescriptorImpl

public abstract class AbstractRestListParameterDescriptor extends ParameterDefinition.ParameterDescriptor
Job configuration checks and the Test Configuration action shared by the descriptors of the REST List and REST Multi List parameters. Stapler resolves these web methods on descriptor superclasses, so both parameter types' config.jelly bind to them unchanged.
  • Constructor Details

    • AbstractRestListParameterDescriptor

      public AbstractRestListParameterDescriptor()
  • Method Details

    • getDefaultCacheTime

      public Integer getDefaultCacheTime()
    • getFetchTimeout

      public Integer getFetchTimeout()
      Returns:
      The global fetch timeout in seconds, which the build form uses to give up on a load without a response
    • newInstance

      public ParameterDefinition newInstance(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject formData) throws Descriptor.FormException
      The pagination block is an inline f:optionalBlock, so the strategy binds straight to the pagination field. Inline blocks submit their fields even while unchecked, so an unchecked block is turned into "no pagination" here.
      Overrides:
      newInstance in class Descriptor<ParameterDefinition>
      Throws:
      Descriptor.FormException
    • doCheckRestEndpoint

      @POST public FormValidation doCheckRestEndpoint(@AncestorInPath Item context, @QueryParameter String value, @QueryParameter String credentialId, @QueryParameter MimeType mimeType)
    • doCheckValueExpression

      @POST public FormValidation doCheckValueExpression(@AncestorInPath Item context, @QueryParameter String value, @QueryParameter MimeType mimeType)
    • doFillCredentialIdItems

      @POST public ListBoxModel doFillCredentialIdItems(@AncestorInPath Item context, @QueryParameter String credentialId)
    • doCheckCredentialId

      @POST public FormValidation doCheckCredentialId(@AncestorInPath Item context, @QueryParameter String value)
    • doCheckCacheTime

      @POST public FormValidation doCheckCacheTime(@AncestorInPath Item context, @QueryParameter Integer cacheTime)
    • doTestConfiguration

      @POST public FormValidation doTestConfiguration(@AncestorInPath Item context, @QueryParameter String restEndpoint, @QueryParameter String credentialId, @QueryParameter MimeType mimeType, @QueryParameter String valueExpression, @QueryParameter String displayExpression, @QueryParameter String filter, @QueryParameter ValueOrder valueOrder, @QueryParameter String customHeadersJson, @QueryParameter String paginationJson)