- EMPTY - Static variable in class com.google.common.html.types.SafeHtml
-
The SafeHtml wrapping an empty string.
- EMPTY - Static variable in class com.google.common.html.types.SafeScript
-
The SafeScript wrapping an empty string.
- EMPTY - Static variable in class com.google.common.html.types.SafeStyle
-
The SafeStyle wrapping an empty string.
- EMPTY - Static variable in class com.google.common.html.types.SafeStyleSheet
-
The SafeStyleSheet wrapping an empty string.
- equals(Object) - Method in class com.google.common.html.types.SafeHtml
-
- equals(Object) - Method in class com.google.common.html.types.SafeScript
-
- equals(Object) - Method in class com.google.common.html.types.SafeStyle
-
- equals(Object) - Method in class com.google.common.html.types.SafeStyleSheet
-
- equals(Object) - Method in class com.google.common.html.types.SafeUrl
-
- equals(Object) - Method in class com.google.common.html.types.TrustedResourceUrl
-
- escape(String) - Method in class com.google.common.html.types.escape.Escaper
-
Returns the escaped form of a given literal string.
- escape(String) - Method in class com.google.common.html.types.escape.PercentEscaper
-
- escape(int) - Method in class com.google.common.html.types.escape.PercentEscaper
-
Escapes the given Unicode code point in UTF-8.
- escape(int) - Method in class com.google.common.html.types.escape.UnicodeEscaper
-
Returns the escaped form of the given Unicode code point, or null
if this code point does not need to be escaped.
- escape(String) - Method in class com.google.common.html.types.escape.UnicodeEscaper
-
Returns the escaped form of a given literal string.
- escapeAndAppendContent(String) - Method in class com.google.common.html.types.SafeHtmlBuilder
-
HTML-escapes and appends text
to this element's content.
- Escaper - Class in com.google.common.html.types.escape
-
An object that converts literal text into a format safe for inclusion in a particular context
(such as an XML document).
- Escaper() - Constructor for class com.google.common.html.types.escape.Escaper
-
Constructor for use by subclasses.
- escapeSlow(String, int) - Method in class com.google.common.html.types.escape.UnicodeEscaper
-
Returns the escaped form of a given literal string, starting at the given
index.
- fontFamilyAppend(String, String...) - Method in class com.google.common.html.types.SafeStyleBuilder
-
Appends values
to the font-family
property.
- fromConstant(String) - Static method in class com.google.common.html.types.SafeScripts
-
Creates a SafeScript from the given compile-time constant string script
.
- fromConstant(String) - Static method in class com.google.common.html.types.SafeStyles
-
Creates a SafeStyle from the given compile-time constant string style
.
- fromConstant(String) - Static method in class com.google.common.html.types.SafeStyleSheets
-
Creates a SafeStyleSheet from the given compile-time constant string style
.
- fromConstant(String) - Static method in class com.google.common.html.types.SafeUrls
-
Creates a SafeUrl from the given compile-time constant string url
.
- fromConstant(String) - Static method in class com.google.common.html.types.TrustedResourceUrls
-
Creates a TrustedResourceUrl from the given compile-time constant string url
.
- fromEnvironmentVariable(String) - Static method in class com.google.common.html.types.TrustedResourceUrls
-
- fromProto(SafeHtmlProto) - Static method in class com.google.common.html.types.SafeHtmls
-
Deserializes a SafeHtmlProto into a SafeHtml instance.
- fromProto(SafeScriptProto) - Static method in class com.google.common.html.types.SafeScripts
-
Deserializes a SafeScriptProto into a SafeScript instance.
- fromProto(SafeStyleProto) - Static method in class com.google.common.html.types.SafeStyles
-
Deserializes a SafeStyleProto into a SafeStyle instance.
- fromProto(SafeStyleSheetProto) - Static method in class com.google.common.html.types.SafeStyleSheets
-
Deserializes a SafeStyleSheetProto into a SafeStyleSheet instance.
- fromProto(SafeUrlProto) - Static method in class com.google.common.html.types.SafeUrls
-
Deserializes a SafeUrlProto into a SafeUrl instance.
- fromProto(TrustedResourceUrlProto) - Static method in class com.google.common.html.types.TrustedResourceUrls
-
Deserializes a TrustedResourceUrlProto into a TrustedResourceUrl instance.
- fromScript(SafeScript) - Static method in class com.google.common.html.types.SafeHtmls
-
Wraps a SafeScript inside a <script type="text/javascript"> tag.
- fromScriptUrl(TrustedResourceUrl) - Static method in class com.google.common.html.types.SafeHtmls
-
Creates a <script type="text/javascript" src="url"><script> where the
src
attribute points to the given trustedResourceUrl
.
- SafeHtml - Class in com.google.common.html.types
-
A string that is safe to use in HTML context in DOM APIs and HTML documents.
- SafeHtmlBuilder - Class in com.google.common.html.types
-
Builder for HTML elements which conform to the
SafeHtml
contract.
- SafeHtmlBuilder(String) - Constructor for class com.google.common.html.types.SafeHtmlBuilder
-
Creates a builder for the given elementName
, which must consist only of lowercase
letters, digits and -
.
- SafeHtmlBuilder.DirValue - Enum in com.google.common.html.types
-
- SafeHtmlBuilder.TargetValue - Enum in com.google.common.html.types
-
- safeHtmlFromStringKnownToSatisfyTypeContract(String) - Static method in class com.google.common.html.types.UncheckedConversions
-
Converts a String into a SafeHtml.
- SafeHtmls - Class in com.google.common.html.types
-
Protocol conversions, builders and factory methods for
SafeHtml
.
- SafeScript - Class in com.google.common.html.types
-
A string-like object which represents JavaScript code and that carries the security type
contract that its value, as a string, will not cause execution of unconstrained attacker
controlled code (XSS) when evaluated as JavaScript in a browser.
- safeScriptFromStringKnownToSatisfyTypeContract(String) - Static method in class com.google.common.html.types.UncheckedConversions
-
Converts a String into a SafeScript.
- SafeScripts - Class in com.google.common.html.types
-
Protocol conversions and factory methods for
SafeScript
.
- SafeStyle - Class in com.google.common.html.types
-
A string-like object which represents a sequence of CSS declarations
(propertyName1: propertyvalue1; propertyName2: propertyValue2; ...
) and that carries the
security type contract that its value, as a string, will not cause untrusted script execution
(XSS) when evaluated as CSS in a browser.
- SafeStyleBuilder - Class in com.google.common.html.types
-
- SafeStyleBuilder() - Constructor for class com.google.common.html.types.SafeStyleBuilder
-
- safeStyleFromStringKnownToSatisfyTypeContract(String) - Static method in class com.google.common.html.types.UncheckedConversions
-
Converts a String into a SafeStyle.
- SafeStyles - Class in com.google.common.html.types
-
Protocol conversions and factory methods for
SafeStyle
.
- SafeStyleSheet - Class in com.google.common.html.types
-
A string-like object which represents a CSS style sheet and that carries the security type
contract that its value, as a string, will not cause untrusted script execution (XSS) when
evaluated as CSS in a browser.
- safeStyleSheetFromStringKnownToSatisfyTypeContract(String) - Static method in class com.google.common.html.types.UncheckedConversions
-
Converts a String into a SafeStyleSheet.
- SafeStyleSheets - Class in com.google.common.html.types
-
- SafeUrl - Class in com.google.common.html.types
-
A string that is safe to use in URL context in DOM APIs and HTML documents.
- safeUrlFromStringKnownToSatisfyTypeContract(String) - Static method in class com.google.common.html.types.UncheckedConversions
-
Converts a String into a SafeUrl.
- SafeUrls - Class in com.google.common.html.types
-
Protocol conversions and factory methods for
SafeUrl
.
- sanitize(String) - Static method in class com.google.common.html.types.SafeUrls
-
Creates a SafeUrl object from the given url
, validating that the input string matches
a pattern of commonly used safe URLs.
- sanitize(String, Set<CustomSafeUrlScheme>) - Static method in class com.google.common.html.types.SafeUrls
-
Creates a SafeUrl object from the given url
, validating that the input string matches
a pattern of commonly used safe URLs.
- sanitizeAsString(String, String) - Static method in class com.google.common.html.types.SafeUrls
-
Sanitizes the given url
, validating that the input string matches a pattern of commonly
used safe URLs.
- setAlt(String) - Method in class com.google.common.html.types.SafeHtmlBuilder
-
Sets the alt
attribute for this element.
- setClass(String) - Method in class com.google.common.html.types.SafeHtmlBuilder
-
Sets the class
attribute for this element.
- setColor(String) - Method in class com.google.common.html.types.SafeHtmlBuilder
-
Sets the color
attribute for this element.
- setDataAttribute(String, String) - Method in class com.google.common.html.types.SafeHtmlBuilder
-
Sets a custom data attribute, name
, to value
for this element.
- setDir(SafeHtmlBuilder.DirValue) - Method in class com.google.common.html.types.SafeHtmlBuilder
-
Sets the dir
attribute for this element.
- setHref(SafeUrl) - Method in class com.google.common.html.types.SafeHtmlBuilder
-
Sets the href
attribute for any element.
- setHref(TrustedResourceUrl) - Method in class com.google.common.html.types.SafeHtmlBuilder
-
Sets the href
attribute for this element.
- setId(String) - Method in class com.google.common.html.types.SafeHtmlBuilder
-
Sets the id
attribute for this element.
- setIdWithPrefix(String, String) - Method in class com.google.common.html.types.SafeHtmlBuilder
-
Sets the id
attribute for this element, as the concatenation of a
CompileTimeConstant
prefix
and a value
.
- setName(String) - Method in class com.google.common.html.types.SafeHtmlBuilder
-
Sets the name
attribute for this element.
- setPlaceholder(String) - Method in class com.google.common.html.types.SafeHtmlBuilder
-
Sets the placeholder
attribute for this element.
- setRel(String) - Method in class com.google.common.html.types.SafeHtmlBuilder
-
Sets the rel
attribute for any element.
- setSrc(SafeUrl) - Method in class com.google.common.html.types.SafeHtmlBuilder
-
Sets the src
attribute.
- setSrc(TrustedResourceUrl) - Method in class com.google.common.html.types.SafeHtmlBuilder
-
Sets the src
attribute for this element.
- setStyle(SafeStyle) - Method in class com.google.common.html.types.SafeHtmlBuilder
-
Sets the style
attribute for this element.
- setTarget(SafeHtmlBuilder.TargetValue) - Method in class com.google.common.html.types.SafeHtmlBuilder
-
Sets the target
attribute for this element.
- setTitle(String) - Method in class com.google.common.html.types.SafeHtmlBuilder
-
Sets the title
attribute for this element.
- setType(String) - Method in class com.google.common.html.types.SafeHtmlBuilder
-
Sets the type
attribute for this element, if it's one of button
,
command
, input
, li
, menu
, ol
, or ul
.
- setValue(String) - Method in class com.google.common.html.types.SafeHtmlBuilder
-
Sets the value
attribute for this element.
- top(String) - Method in class com.google.common.html.types.SafeStyleBuilder
-
Sets value
as the top
property.
- toProto(SafeHtml) - Static method in class com.google.common.html.types.SafeHtmls
-
Serializes a SafeHtml into its opaque protocol message representation.
- toProto(SafeScript) - Static method in class com.google.common.html.types.SafeScripts
-
Serializes a SafeScript into its opaque protocol message representation.
- toProto(SafeStyle) - Static method in class com.google.common.html.types.SafeStyles
-
Serializes a SafeStyle into its opaque protocol message representation.
- toProto(SafeStyleSheet) - Static method in class com.google.common.html.types.SafeStyleSheets
-
Serializes a SafeStyleSheet into its opaque protocol message representation.
- toProto(SafeUrl) - Static method in class com.google.common.html.types.SafeUrls
-
Serializes a SafeUrl into its opaque protocol message representation.
- toProto(TrustedResourceUrl) - Static method in class com.google.common.html.types.TrustedResourceUrls
-
Serializes a TrustedResourceUrl into its opaque protocol message representation.
- toString() - Method in class com.google.common.html.types.SafeHtml
-
Returns a debug representation of this value's underlying string, NOT the string representation
of the SafeHtml.
- toString() - Method in enum com.google.common.html.types.SafeHtmlBuilder.DirValue
-
- toString() - Method in enum com.google.common.html.types.SafeHtmlBuilder.TargetValue
-
- toString() - Method in class com.google.common.html.types.SafeScript
-
Returns a debug representation of this value's underlying string, NOT the string representation
of the SafeScript.
- toString() - Method in class com.google.common.html.types.SafeStyle
-
Returns a debug representation of this value's underlying string, NOT the string representation
of the style declaration(s).
- toString() - Method in class com.google.common.html.types.SafeStyleSheet
-
Returns a debug representation of this value's underlying string, NOT the string representation
of the style declaration(s).
- toString() - Method in class com.google.common.html.types.SafeUrl
-
Returns a debug representation of this value's underlying string, NOT the string representation
of the URL.
- toString() - Method in class com.google.common.html.types.TrustedResourceUrl
-
Returns a debug representation of this value's underlying string, NOT the string representation
of the URL.
- TrustedResourceUrl - Class in com.google.common.html.types
-
A URL which is under application control and from which script, CSS, and other resources that
represent executable code, can be fetched.
- TrustedResourceUrlBuilder - Class in com.google.common.html.types
-
Builder for constructing
TrustedResourceUrl
in steps, from application-controlled
strings.
- TrustedResourceUrlBuilder() - Constructor for class com.google.common.html.types.TrustedResourceUrlBuilder
-
Creates a new builder, with an empty underlying URL.
- TrustedResourceUrlBuilder(String) - Constructor for class com.google.common.html.types.TrustedResourceUrlBuilder
-
Creates a new builder, with an underlying URL set to the given compile-time constant
string
.
- trustedResourceUrlFromStringKnownToSatisfyTypeContract(String) - Static method in class com.google.common.html.types.UncheckedConversions
-
Converts a String into a TrustedResourceUrl.
- TrustedResourceUrls - Class in com.google.common.html.types
-