public abstract class AbstractAntiSamyScanner extends Object
Modifier and Type | Field and Description |
---|---|
protected List<String> |
errorMessages |
protected boolean |
isNofollowAnchors |
protected boolean |
isValidateParamAsEmbed |
protected Locale |
locale |
protected static ResourceBundle |
messages |
protected InternalPolicy |
policy |
Constructor and Description |
---|
AbstractAntiSamyScanner() |
AbstractAntiSamyScanner(Policy policy) |
Modifier and Type | Method and Description |
---|---|
protected void |
addError(String errorKey,
Object[] objs) |
protected org.apache.xml.serialize.HTMLSerializer |
getHTMLSerializer(Writer w,
org.apache.xml.serialize.OutputFormat format) |
protected org.apache.xml.serialize.OutputFormat |
getOutputFormat() |
abstract CleanResults |
getResults() |
abstract CleanResults |
scan(String html) |
protected String |
trim(String original,
String cleaned) |
protected final InternalPolicy policy
protected static final ResourceBundle messages
protected final Locale locale
protected boolean isNofollowAnchors
protected boolean isValidateParamAsEmbed
public AbstractAntiSamyScanner(Policy policy)
public AbstractAntiSamyScanner() throws PolicyException
PolicyException
public abstract CleanResults scan(String html) throws ScanException
ScanException
public abstract CleanResults getResults()
protected org.apache.xml.serialize.OutputFormat getOutputFormat()
protected org.apache.xml.serialize.HTMLSerializer getHTMLSerializer(Writer w, org.apache.xml.serialize.OutputFormat format)
Copyright © 2014. All rights reserved.