public class ConfigDataSource extends Object implements DataSource
Config
.Constructor and Description |
---|
ConfigDataSource(org.jenkinsci.lib.configprovider.model.Config config,
boolean strip,
Map<String,String> replacements)
Creates a new instance from the supplied config.
|
Modifier and Type | Method and Description |
---|---|
String |
getContentType() |
InputStream |
getInputStream() |
String |
getName() |
OutputStream |
getOutputStream() |
public ConfigDataSource(@NonNull org.jenkinsci.lib.configprovider.model.Config config, boolean strip, @Nullable Map<String,String> replacements)
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 contentpublic InputStream getInputStream() throws IOException
getInputStream
in interface DataSource
IOException
public OutputStream getOutputStream() throws IOException
getOutputStream
in interface DataSource
IOException
public String getContentType()
getContentType
in interface DataSource
public String getName()
getName
in interface DataSource
Copyright © 2016–2021. All rights reserved.