Class ConfigDataSource

java.lang.Object
jenkins.plugins.jclouds.config.ConfigDataSource
All Implemented Interfaces:
jakarta.activation.DataSource

public class ConfigDataSource extends Object implements jakarta.activation.DataSource
A readonly DataSource, backed by a Config.
  • Constructor Details

    • ConfigDataSource

      public ConfigDataSource(@NonNull org.jenkinsci.lib.configprovider.model.Config config, boolean strip, @Nullable Map<String,String> replacements)
      Creates a new instance from the supplied config.
      Parameters:
      config - The config to be used for supplying the content.
      strip - If true, then any leading signature will be stripped if possible.
      replacements - If non-null, specifies mappings of VARIABLENAME to value which will be replaced in the content
  • Method Details

    • getInputStream

      public InputStream getInputStream() throws IOException
      Specified by:
      getInputStream in interface jakarta.activation.DataSource
      Throws:
      IOException
    • getOutputStream

      public OutputStream getOutputStream() throws IOException
      Specified by:
      getOutputStream in interface jakarta.activation.DataSource
      Throws:
      IOException
    • getContentType

      public String getContentType()
      Specified by:
      getContentType in interface jakarta.activation.DataSource
    • getName

      public String getName()
      Specified by:
      getName in interface jakarta.activation.DataSource