Class PrefilteredContent
java.lang.Object
com.cloudbees.jenkins.support.api.Content
com.cloudbees.jenkins.support.filter.PrefilteredContent
- Direct Known Subclasses:
FileContent
,LogRecordContent
,PrefilteredPrintedContent
,StringContent
Represents some content in a support bundle which will be filtered previously to the zip created.
-
Constructor Summary
ModifierConstructorDescriptionprotected
PrefilteredContent
(String name) protected
PrefilteredContent
(String name, String... filterableParameters) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
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 contentMethods inherited from class com.cloudbees.jenkins.support.api.Content
getFilterableParameters, getName, getTime, writeTo
-
Constructor Details
-
PrefilteredContent
-
PrefilteredContent
-
-
Method Details
-
writeTo
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
-