Class AbstractAntiSamyScanner

java.lang.Object
org.owasp.validator.html.scan.AbstractAntiSamyScanner
Direct Known Subclasses:
AntiSamyDOMScanner, AntiSamySAXScanner

public abstract class AbstractAntiSamyScanner extends Object
  • Field Details

    • policy

      protected final InternalPolicy policy
    • errorMessages

      protected final List<String> errorMessages
    • messages

      protected static final ResourceBundle messages
    • locale

      protected final Locale locale
    • isNofollowAnchors

      protected boolean isNofollowAnchors
    • isValidateParamAsEmbed

      protected boolean isValidateParamAsEmbed
  • Constructor Details

  • Method Details

    • scan

      public abstract CleanResults scan(String html) throws ScanException
      Throws:
      ScanException
    • getResults

      public abstract CleanResults getResults()
    • addError

      protected void addError(String errorKey, Object[] objs)
    • getOutputFormat

      protected org.apache.xml.serialize.OutputFormat getOutputFormat()
    • getHTMLSerializer

      protected org.apache.xml.serialize.HTMLSerializer getHTMLSerializer(Writer w, org.apache.xml.serialize.OutputFormat format)
    • trim

      protected String trim(String original, String cleaned)