public class PlainTextToHtmlContentContext extends Object implements XSSFilterRule
| Constructor and Description |
|---|
PlainTextToHtmlContentContext() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
check(PolicyHandler policy,
String str)
Check to see if a given string contains policy violations.
|
String |
filter(PolicyHandler policy,
String str)
Filter a given string to remove any policy violations.
|
boolean |
supportsPolicy() |
public boolean check(PolicyHandler policy, String str)
XSSFilterRulecheck in interface XSSFilterRulepolicy - the policy handler to use for filteringstr - the input to checkXSSFilterRule.check(PolicyHandler, String)public String filter(PolicyHandler policy, String str)
XSSFilterRulefilter in interface XSSFilterRulepolicy - the policy handler to use for filteringstr - the input to filterXSSFilterRule.filter(PolicyHandler, java.lang.String)public boolean supportsPolicy()
supportsPolicy in interface XSSFilterRuleXSSFilterRule.supportsPolicy()Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.