Class ContentMapping
java.lang.Object
com.cloudbees.jenkins.support.filter.ContentMapping
- All Implemented Interfaces:
ContentFilter,ExtensionPoint
@Immutable
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public class ContentMapping
extends Object
implements ContentFilter
Represents a mapping from some original string to a replacement. Useful both as an individual ContentFilter as well
as a persistable class for consistent anonymization mappings.
- Since:
- TODO
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from interface com.cloudbees.jenkins.support.filter.ContentFilter
ALL, NONE -
Method Summary
Modifier and TypeMethodDescriptionbooleanFilters a line or snippet of text.inthashCode()static ContentMappingConstructs a ContentMapping using an original and replacement value.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cloudbees.jenkins.support.filter.ContentFilter
ensureLoaded, reload
-
Method Details
-
of
Constructs a ContentMapping using an original and replacement value. -
getOriginal
- Returns:
- the original string to replace
-
getReplacement
- Returns:
- the replacement string that the originals are replaced with
-
filter
Description copied from interface:ContentFilterFilters a line or snippet of text.- Specified by:
filterin interfaceContentFilter- Parameters:
input- input data to filter- Returns:
- the filtered input data
-
equals
-
hashCode
public int hashCode()
-