|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.content.render.xhtml.PolicyConfiguredXhtmlCleaner
public class PolicyConfiguredXhtmlCleaner
A thread safe XhtmlCleaner which is configured via a policy file classpath resource.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.atlassian.confluence.content.render.xhtml.XhtmlCleaner |
---|
XhtmlCleaner.AppliedRuleDescription, XhtmlCleaner.Result |
Constructor Summary | |
---|---|
PolicyConfiguredXhtmlCleaner(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. |
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,
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 PolicyConfiguredXhtmlCleaner(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 String cleanQuietly(ContentEntityObject uncleanCeo)
XhtmlCleaner
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 String cleanQuietly(String unclean, ConversionContext context)
XhtmlCleaner
cleanQuietly
in interface XhtmlCleaner
unclean
- the String to be cleanedcontext
- The ConversionContext that applies to the provided content.
public String cleanStyleAttribute(String uncleanStyle)
XhtmlCleaner
cleanStyleAttribute
in interface XhtmlCleaner
uncleanStyle
- the style attribute value to be cleaned
public boolean isCleanUrlAttribute(String urlValue)
XhtmlCleaner
isCleanUrlAttribute
in interface XhtmlCleaner
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |