Package jenkins.plugins.jclouds.config
Class ConfigDataSource
java.lang.Object
jenkins.plugins.jclouds.config.ConfigDataSource
- All Implemented Interfaces:
jakarta.activation.DataSource
A readonly DataSource, backed by a
Config
.-
Constructor Summary
ConstructorsConstructorDescriptionConfigDataSource
(org.jenkinsci.lib.configprovider.model.Config config, boolean strip, Map<String, String> replacements) Creates a new instance from the supplied config. -
Method Summary
-
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
- Iftrue
, 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
- Specified by:
getInputStream
in interfacejakarta.activation.DataSource
- Throws:
IOException
-
getOutputStream
- Specified by:
getOutputStream
in interfacejakarta.activation.DataSource
- Throws:
IOException
-
getContentType
- Specified by:
getContentType
in interfacejakarta.activation.DataSource
-
getName
- Specified by:
getName
in interfacejakarta.activation.DataSource
-