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)
XSSFilterRule
check
in interface XSSFilterRule
policy
- the policy handler to use for filteringstr
- the input to checkXSSFilterRule.check(PolicyHandler, String)
public String filter(PolicyHandler policy, String str)
XSSFilterRule
filter
in interface XSSFilterRule
policy
- the policy handler to use for filteringstr
- the input to filterXSSFilterRule.filter(PolicyHandler, java.lang.String)
public boolean supportsPolicy()
supportsPolicy
in interface XSSFilterRule
XSSFilterRule.supportsPolicy()
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.