|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.content.render.xhtml.PolicyConfiguredCleaner
public class PolicyConfiguredCleaner
A thread safe xhtml/html/xml Cleaner which is configured via a policy file classpath resource.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.atlassian.confluence.content.render.xhtml.StorageFormatCleaner |
|---|
StorageFormatCleaner.AppliedRuleDescription, StorageFormatCleaner.Result |
| Nested classes/interfaces inherited from interface com.atlassian.confluence.content.render.xhtml.XhtmlCleaner |
|---|
XhtmlCleaner.AppliedRuleDescription, XhtmlCleaner.Result |
| Constructor Summary | |
|---|---|
PolicyConfiguredCleaner(String policyResource)
Constructor that will lazily load the Transformer as it is required. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PolicyConfiguredCleaner(String policyResource)
policyResource - the resource file holding the security policy.| Method Detail |
|---|
public XhtmlCleaner.Result clean(ContentEntityObject uncleanCeo)
XhtmlCleaner
clean 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)
StorageFormatCleaner
cleanEntity 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)
StorageFormatCleaner
cleanQuietly 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)
StorageFormatCleaner
cleanQuietly in interface StorageFormatCleanercleanQuietly in interface XhtmlCleanerunclean - the String to be cleanedcontext - The ConversionContext that applies to the provided content.
public String cleanQuietly(String unclean)
StorageFormatCleaner
cleanQuietly in interface RenderedContentCleanercleanQuietly in interface StorageFormatCleanercleanQuietly in interface XhtmlCleanerunclean - the String to be cleaned
public String cleanStyleAttribute(String uncleanStyle)
StorageFormatCleaner
cleanStyleAttribute in interface RenderedContentCleanercleanStyleAttribute in interface StorageFormatCleanercleanStyleAttribute in interface XhtmlCleaneruncleanStyle - the style attribute value to be cleaned
public boolean isCleanUrlAttribute(String urlValue)
StorageFormatCleaner
isCleanUrlAttribute in interface RenderedContentCleanerisCleanUrlAttribute in interface StorageFormatCleanerisCleanUrlAttribute in interface XhtmlCleaner
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||