Class InternalPolicy

java.lang.Object
org.owasp.validator.html.Policy
org.owasp.validator.html.InternalPolicy

public class InternalPolicy extends Policy
Contains a bunch of optimized lookups over the regular Policy Class. For internal use only. Not part of any public api and may explode or self destruct at any given moment, preferably both.
Author:
Kristian Rosenvold
  • Constructor Details

  • Method Details

    • getEmbedTag

      public Tag getEmbedTag()
    • getStyleTag

      public Tag getStyleTag()
    • isEmbedStyleSheets

      public boolean isEmbedStyleSheets()
    • isPreserveComments

      public boolean isPreserveComments()
    • getMaxInputSize

      public int getMaxInputSize()
    • isEntityEncodeIntlCharacters

      public boolean isEntityEncodeIntlCharacters()
    • isNofollowAnchors

      public boolean isNofollowAnchors()
    • isValidateParamAsEmbed

      public boolean isValidateParamAsEmbed()
    • isFormatOutput

      public boolean isFormatOutput()
    • isPreserveSpace

      public boolean isPreserveSpace()
    • isOmitXmlDeclaration

      public boolean isOmitXmlDeclaration()
    • isUseXhtml

      public boolean isUseXhtml()
    • isOmitDoctypeDeclaration

      public boolean isOmitDoctypeDeclaration()
    • getOnUnknownTag

      public String getOnUnknownTag()
    • isEncodeUnknownTag

      public boolean isEncodeUnknownTag()
    • determineMaxInputSize

      public int determineMaxInputSize()
      Returns the maximum input size. If this value is not specified by the policy, the DEFAULT_MAX_INPUT_SIZE is used.
      Returns:
      the maximium input size.