Enum AnyMETA.HttpEquiv

java.lang.Object
java.lang.Enum<AnyMETA.HttpEquiv>
com.aoapps.html.any.AnyMETA.HttpEquiv
All Implemented Interfaces:
Serializable, Comparable<AnyMETA.HttpEquiv>, Function<AnyDocument<?>,String>
Enclosing class:
AnyMETA<D extends AnyDocument<D>,PC extends AnyUnion_Metadata_Phrasing<D,PC>,E extends AnyMETA<D,PC,E>>

public static enum AnyMETA.HttpEquiv extends Enum<AnyMETA.HttpEquiv> implements Function<AnyDocument<?>,String>
  • Enum Constant Details

    • CONTENT_LANGUAGE

      @Deprecated public static final AnyMETA.HttpEquiv CONTENT_LANGUAGE
      Deprecated.
      Do not use this value, as it is obsolete. Prefer the lang attribute on the <html> element.
      Defines the default language of the page. It can be overridden by the lang attribute on any element.
    • CONTENT_SECURITY_POLICY

      public static final AnyMETA.HttpEquiv CONTENT_SECURITY_POLICY
      Allows page authors to define a content policy for the current page. Content policies mostly specify allowed server origins and script endpoints which help guard against cross-site scripting attacks.
    • CONTENT_SCRIPT_TYPE

      @Deprecated public static final AnyMETA.HttpEquiv CONTENT_SCRIPT_TYPE
      Deprecated.
      This is no longer required as of HTML 5.

      Authors should specify the default scripting language for all scripts in a document.

      See Scripts in HTML documents.

    • CONTENT_STYLE_TYPE

      @Deprecated public static final AnyMETA.HttpEquiv CONTENT_STYLE_TYPE
      Deprecated.
      This is no longer required as of HTML 5.

      Authors must specify the style sheet language of style information associated with an HTML document.

      See Style Sheets in HTML documents.

    • CONTENT_TYPE

      @Deprecated public static final AnyMETA.HttpEquiv CONTENT_TYPE
      Deprecated.
      Do not use this value, as it is obsolete. Use the charset attribute on the <meta> element.
      Defines the MIME type of the document, followed by its character encoding. It follows the same syntax as the HTTP content-type entity-header field, but as it is inside a HTML page, most values other than text/html are impossible. Therefore the valid syntax for its content is the string 'text/html' followed by a character set with the following syntax: '; charset=IANAcharset', where IANAcharset is the preferred MIME name for a character set as defined by the IANA.
    • DEFAULT_STYLE

      public static final AnyMETA.HttpEquiv DEFAULT_STYLE

      The meta element with a http-equiv attribute whose value is "default-style" represents a pragma directive that specifies the document’s preferred stylesheet.

    • REFRESH

      public static final AnyMETA.HttpEquiv REFRESH
      The refresh instruction. This instruction specifies:
      • The number of seconds until the page should be reloaded - only if the content attribute contains a positive integer.
      • The number of seconds until the page should redirect to another - only if the content attribute contains a positive integer followed by the string ';url=', and a valid URL.
  • Method Details

    • values

      public static AnyMETA.HttpEquiv[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static AnyMETA.HttpEquiv valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Overrides:
      toString in class Enum<AnyMETA.HttpEquiv>
    • apply

      public String apply(AnyDocument<?> document)
      Specified by:
      apply in interface Function<AnyDocument<?>,String>
    • getValue

      public String getValue()