|
||||||||||
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(java.lang.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. |
java.lang.String |
cleanQuietly(ContentEntityObject uncleanCeo)
Clean the specified body content markup and make it safe from security concerns with out reporting any clean up performed |
java.lang.String |
cleanQuietly(java.lang.String unclean)
Clean the specified String. |
java.lang.String |
cleanQuietly(java.lang.String unclean,
ConversionContext context)
Clean the specified String. |
java.lang.String |
cleanStyleAttribute(java.lang.String uncleanStyle)
Convert the supplied value of an HTML style attribute into a safe form if necessary. |
boolean |
isCleanUrlAttribute(java.lang.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(java.lang.String policyResource)
policyResource
- the resource file holding the security policy.Method Detail |
---|
public XhtmlCleaner.Result clean(ContentEntityObject uncleanCeo)
XhtmlCleaner
clean
in interface XhtmlCleaner
uncleanCeo
- 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 StorageFormatCleaner
uncleanCeo
- a CEO containing the body content to be processed. The CEO is not modified, but the cleaned
body content is returned.
public java.lang.String cleanQuietly(ContentEntityObject uncleanCeo)
StorageFormatCleaner
cleanQuietly
in interface StorageFormatCleaner
cleanQuietly
in interface XhtmlCleaner
uncleanCeo
- a CEO containing the body content to be processed. The CEO is not modified, but the cleaned
body content is returned.
public java.lang.String cleanQuietly(java.lang.String unclean, ConversionContext context)
StorageFormatCleaner
cleanQuietly
in interface StorageFormatCleaner
cleanQuietly
in interface XhtmlCleaner
unclean
- the String to be cleanedcontext
- The ConversionContext that applies to the provided content.
public java.lang.String cleanQuietly(java.lang.String unclean)
StorageFormatCleaner
cleanQuietly
in interface RenderedContentCleaner
cleanQuietly
in interface StorageFormatCleaner
cleanQuietly
in interface XhtmlCleaner
unclean
- the String to be cleaned
public java.lang.String cleanStyleAttribute(java.lang.String uncleanStyle)
StorageFormatCleaner
cleanStyleAttribute
in interface RenderedContentCleaner
cleanStyleAttribute
in interface StorageFormatCleaner
cleanStyleAttribute
in interface XhtmlCleaner
uncleanStyle
- the style attribute value to be cleaned
public boolean isCleanUrlAttribute(java.lang.String urlValue)
StorageFormatCleaner
isCleanUrlAttribute
in interface RenderedContentCleaner
isCleanUrlAttribute
in interface StorageFormatCleaner
isCleanUrlAttribute
in interface XhtmlCleaner
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |