Package com.oorian.html.elements.consts
Enum Class HttpEquiv
- All Implemented Interfaces:
Serializable,Comparable<HttpEquiv>,Constable
Enumeration defining the HTTP-equivalent meta tag values.
This enum provides type-safe constants for the meta element's "http-equiv" attribute,
which provides HTTP header information that can be used by browsers.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Marvin P. Warble Jr.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSpecifies a Content Security Policy for the document.Specifies a Content Security Policy in report-only mode for testing.Specifies the character encoding for the HTML document.Specifies the preferred stylesheet to use.Instructs the browser to refresh or redirect after a specified time. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Gets the HTTP-equiv value for use in meta elements.toString()static HttpEquivReturns the enum constant of this class with the specified name.static HttpEquiv[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CONTENT_TYPE
Specifies the character encoding for the HTML document. Example: <meta http-equiv="content-type" content="text/html; charset=UTF-8"> -
DEFAULT_STYLE
Specifies the preferred stylesheet to use. Used to select which of multiple stylesheets should be active by default. -
REFRESH
Instructs the browser to refresh or redirect after a specified time. Example: <meta http-equiv="refresh" content="30"> refreshes every 30 seconds. -
CONTENT_SECURITY_POLICY
Specifies a Content Security Policy for the document. Defines which content sources are allowed to be loaded by the browser. Example: <meta http-equiv="content-security-policy" content="default-src 'self'"> -
CONTENT_SECURITY_POLICY_REPORT_ONLY
Specifies a Content Security Policy in report-only mode for testing. Violations are reported but not enforced by the browser. Example: <meta http-equiv="content-security-policy-report-only" content="default-src 'self'">
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
Gets the HTTP-equiv value for use in meta elements.- Returns:
- the string value used in HTML http-equiv attribute.
-
toString
-