Package jenkins.plugins.jclouds.config
Class ConfigDataSource
- java.lang.Object
-
- jenkins.plugins.jclouds.config.ConfigDataSource
-
- All Implemented Interfaces:
DataSource
public class ConfigDataSource extends Object implements DataSource
A readonly DataSource, backed by aConfig
.
-
-
Constructor Summary
Constructors Constructor Description ConfigDataSource(org.jenkinsci.lib.configprovider.model.Config config, boolean strip, Map<String,String> replacements)
Creates a new instance from the supplied config.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getContentType()
InputStream
getInputStream()
String
getName()
OutputStream
getOutputStream()
-
-
-
Constructor Detail
-
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 Detail
-
getInputStream
public InputStream getInputStream() throws IOException
- Specified by:
getInputStream
in interfaceDataSource
- Throws:
IOException
-
getOutputStream
public OutputStream getOutputStream() throws IOException
- Specified by:
getOutputStream
in interfaceDataSource
- Throws:
IOException
-
getContentType
public String getContentType()
- Specified by:
getContentType
in interfaceDataSource
-
getName
public String getName()
- Specified by:
getName
in interfaceDataSource
-
-