public class PolicyConfiguredCleaner extends Object implements StorageFormatCleaner, RenderedContentCleaner, XhtmlCleaner
StorageFormatCleaner.AppliedRuleDescription, StorageFormatCleaner.ResultXhtmlCleaner.AppliedRuleDescription, XhtmlCleaner.Result| Constructor and Description |
|---|
PolicyConfiguredCleaner(String policyResource)
Constructor that will lazily load the Transformer as it is required.
|
| Modifier and Type | Method and Description |
|---|---|
XhtmlCleaner.Result |
clean(ContentEntityObject uncleanCeo)
Clean the supplied body content markup and make it safe from security concerns.
|
StorageFormatCleaner.Result |
cleanEntity(ContentEntityObject uncleanCeo)
Clean the supplied body content markup and make it safe from security concerns.
|
String |
cleanQuietly(ContentEntityObject uncleanCeo)
Clean the specified body content markup and make it safe from security concerns with out reporting any clean up
performed
|
String |
cleanQuietly(String unclean)
Clean the specified String.
|
String |
cleanQuietly(String unclean,
ConversionContext context)
Clean the specified String.
|
String |
cleanStyleAttribute(String uncleanStyle)
Convert the supplied value of an HTML style attribute into a safe form if necessary.
|
boolean |
isCleanUrlAttribute(String urlValue)
Test that the supplied value of a URL type attribute (such as href) is safe for output.
|
public PolicyConfiguredCleaner(String policyResource)
policyResource - the resource file holding the security policy.public XhtmlCleaner.Result clean(ContentEntityObject uncleanCeo)
XhtmlCleanerclean in interface XhtmlCleaneruncleanCeo - a CEO containing the body content to be processed. The CEO is not modified, but the cleaned
body content is returned.public StorageFormatCleaner.Result cleanEntity(ContentEntityObject uncleanCeo)
StorageFormatCleanercleanEntity in interface StorageFormatCleaneruncleanCeo - a CEO containing the body content to be processed. The CEO is not modified, but the cleaned
body content is returned.public String cleanQuietly(ContentEntityObject uncleanCeo)
StorageFormatCleanercleanQuietly in interface StorageFormatCleanercleanQuietly in interface XhtmlCleaneruncleanCeo - a CEO containing the body content to be processed. The CEO is not modified, but the cleaned
body content is returned.public String cleanQuietly(String unclean, ConversionContext context)
StorageFormatCleanercleanQuietly in interface StorageFormatCleanercleanQuietly in interface XhtmlCleanerunclean - the String to be cleanedcontext - The ConversionContext that applies to the provided content.public String cleanQuietly(String unclean)
StorageFormatCleanercleanQuietly in interface RenderedContentCleanercleanQuietly in interface StorageFormatCleanercleanQuietly in interface XhtmlCleanerunclean - the String to be cleanedpublic String cleanStyleAttribute(String uncleanStyle)
StorageFormatCleanercleanStyleAttribute in interface RenderedContentCleanercleanStyleAttribute in interface StorageFormatCleanercleanStyleAttribute in interface XhtmlCleaneruncleanStyle - the style attribute value to be cleanedpublic boolean isCleanUrlAttribute(String urlValue)
StorageFormatCleanerisCleanUrlAttribute in interface RenderedContentCleanerisCleanUrlAttribute in interface StorageFormatCleanerisCleanUrlAttribute in interface XhtmlCleanerCopyright © 2003–2019 Atlassian. All rights reserved.