public static enum SanitizedContent.ContentKind extends Enum<SanitizedContent.ContentKind>
| Enum Constant and Description |
|---|
ATTRIBUTES
An attribute name and value, such as
dir="ltr". |
CSS
A CSS3 declaration, property, value or group of semicolon separated declarations.
|
HTML
A snippet of HTML that does not start or end inside a tag, comment, entity, or DOCTYPE; and
that does not contain any executable code (JS,
<object>s, etc.) from a different
trust domain. |
JS
Executable Javascript code or expression, safe for insertion in a script-tag or event
handler context, known to be free of any attacker-controlled scripts.
|
TEXT
Unsanitized plain-text content.
|
TRUSTED_RESOURCE_URI
Resource URIs used in scrips sources, stylesheets, etc which are not in attacker control.
|
URI
A properly encoded portion of a URI.
|
| Modifier and Type | Method and Description |
|---|---|
static SanitizedContent.ContentKind |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SanitizedContent.ContentKind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SanitizedContent.ContentKind HTML
<object>s, etc.) from a different
trust domain.public static final SanitizedContent.ContentKind JS
public static final SanitizedContent.ContentKind URI
public static final SanitizedContent.ContentKind TRUSTED_RESOURCE_URI
public static final SanitizedContent.ContentKind ATTRIBUTES
dir="ltr".public static final SanitizedContent.ContentKind CSS
public static final SanitizedContent.ContentKind TEXT
In the soy type system, TEXT is equivalent to the string type.
public static SanitizedContent.ContentKind[] values()
for (SanitizedContent.ContentKind c : SanitizedContent.ContentKind.values()) System.out.println(c);
public static SanitizedContent.ContentKind valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null