Class PrefilteredContent
- java.lang.Object
-
- com.cloudbees.jenkins.support.api.Content
-
- com.cloudbees.jenkins.support.filter.PrefilteredContent
-
- Direct Known Subclasses:
FileContent
,LogRecordContent
,PrefilteredPrintedContent
,StringContent
public abstract class PrefilteredContent extends Content
Represents some content in a support bundle which will be filtered previously to the zip created.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
PrefilteredContent(String name)
protected
PrefilteredContent(String name, String... filterableParameters)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
shouldBeFiltered()
Indicates if this Content should be filtered when anonymization is enabled.abstract void
writeTo(OutputStream os, ContentFilter filter)
Write the component in the bundle filtering the content-
Methods inherited from class com.cloudbees.jenkins.support.api.Content
getFilterableParameters, getName, getTime, writeTo
-
-
-
-
Method Detail
-
writeTo
public abstract void writeTo(OutputStream os, ContentFilter filter) throws IOException
Write the component in the bundle filtering the content- Parameters:
os
- OutputStream where write the contentfilter
- ContentFilter to apply- Throws:
IOException
- If an input or output exception occurs
-
shouldBeFiltered
public final boolean shouldBeFiltered()
Description copied from class:Content
Indicates if this Content should be filtered when anonymization is enabled. Whentrue
, the contents written viaContent.writeTo(OutputStream)
may be filtered by aContentFilter
. Whenfalse
, the contents are written without any filtering applied.- Overrides:
shouldBeFiltered
in classContent
-
-