Skip navigation links
A B C D E F G H I L M N O P R S T U V W 

A

append(String) - Method in class com.google.common.html.types.TrustedResourceUrlBuilder
Appends the compile-time constant string to the URL being built.
appendContent(SafeHtml...) - Method in class com.google.common.html.types.SafeHtmlBuilder
Appends the given htmls as this element's content, in sequence.
appendContent(Iterable<SafeHtml>) - Method in class com.google.common.html.types.SafeHtmlBuilder
Appends the given htmls as this element's content, in the sequence the Iterable returns them.
appendContent(Iterator<SafeHtml>) - Method in class com.google.common.html.types.SafeHtmlBuilder
Appends the given htmls as this element's content, in the sequence the Iterator returns them.
assertClassIsNotExportable(Class<?>) - Static method in class com.google.common.html.types.testing.assertions.Assertions
Asserts that klass does not have any annotations that imply that it is exportable.
Assertions - Class in com.google.common.html.types.testing.assertions
Custom assertions for internal safe HTML types tests.

B

backgroundAttachmentAppend(String, String...) - Method in class com.google.common.html.types.SafeStyleBuilder
Appends values to the background-attachment property.
backgroundColor(String) - Method in class com.google.common.html.types.SafeStyleBuilder
Sets value as the background-color property.
backgroundColorFromConstant(String) - Method in class com.google.common.html.types.SafeStyleBuilder
Sets constant as the background-color property.
backgroundImageAppendConstant(String) - Method in class com.google.common.html.types.SafeStyleBuilder
Appends constant to the background-image property, if necessary inserting a leading comma.
backgroundImageAppendUrl(String) - Method in class com.google.common.html.types.SafeStyleBuilder
Appends a url value to the background-image property, if necessary inserting a leading comma.
backgroundPosition(String) - Method in class com.google.common.html.types.SafeStyleBuilder
Sets value as the background-position property.
backgroundRepeat(String) - Method in class com.google.common.html.types.SafeStyleBuilder
Sets value as the background-repeat property
backgroundSizeAppend(String, String...) - Method in class com.google.common.html.types.SafeStyleBuilder
Appends values to the background-size property.
border(String) - Method in class com.google.common.html.types.SafeStyleBuilder
Sets value as the border property.
borderColor(String) - Method in class com.google.common.html.types.SafeStyleBuilder
Sets value as the border-color property.
borderColorFromConstant(String) - Method in class com.google.common.html.types.SafeStyleBuilder
Sets constant as the border-color property.
bottom(String) - Method in class com.google.common.html.types.SafeStyleBuilder
Sets value as the bottom property.
build() - Method in class com.google.common.html.types.SafeHtmlBuilder
 
build() - Method in class com.google.common.html.types.SafeStyleBuilder
 
build() - Method in class com.google.common.html.types.TrustedResourceUrlBuilder
Returns the TrustedResourceUrl built so far.

C

codePointAt(CharSequence, int, int) - Static method in class com.google.common.html.types.escape.UnicodeEscaper
Returns the Unicode code point of the character at the given index.
com.google.common.html.types - package com.google.common.html.types
 
com.google.common.html.types.escape - package com.google.common.html.types.escape
 
com.google.common.html.types.testing - package com.google.common.html.types.testing
 
com.google.common.html.types.testing.assertions - package com.google.common.html.types.testing.assertions
 
comment(String) - Static method in class com.google.common.html.types.SafeHtmls
Converts an arbitrary string into an HTML comment by HTML-escaping the contents and embedding the result between HTML comment markers.
concat(SafeHtml...) - Static method in class com.google.common.html.types.SafeHtmls
Creates a new SafeHtml which contains, in order, the string representations of the given htmls.

D

display(String) - Method in class com.google.common.html.types.SafeStyleBuilder
Sets value as the display property.

E

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.

F

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
Creates a TrustedResourceUrl from the value of an environment variable.
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.

G

getSafeHtmlString() - Method in class com.google.common.html.types.SafeHtml
Returns this value's underlying string.
getSafeScriptString() - Method in class com.google.common.html.types.SafeScript
Returns this value's underlying string.
getSafeStyleSheetString() - Method in class com.google.common.html.types.SafeStyleSheet
Returns this value's underlying string.
getSafeStyleString() - Method in class com.google.common.html.types.SafeStyle
Returns this value's underlying string.
getSafeUrlString() - Method in class com.google.common.html.types.SafeUrl
Returns this value's underlying string.
getTrustedResourceUrlString() - Method in class com.google.common.html.types.TrustedResourceUrl
Returns this value's underlying string.

H

hashCode() - Method in class com.google.common.html.types.SafeHtml
 
hashCode() - Method in class com.google.common.html.types.SafeScript
 
hashCode() - Method in class com.google.common.html.types.SafeStyle
 
hashCode() - Method in class com.google.common.html.types.SafeStyleSheet
 
hashCode() - Method in class com.google.common.html.types.SafeUrl
 
hashCode() - Method in class com.google.common.html.types.TrustedResourceUrl
 
height(String) - Method in class com.google.common.html.types.SafeStyleBuilder
Sets value as the height property.
HtmlConversions - Class in com.google.common.html.types.testing
Static utilities to create arbitrary values of safe HTML-related types for use by tests only.
htmlEscape(String) - Static method in class com.google.common.html.types.SafeHtmls
Converts, by HTML-escaping, an arbitrary string into a contract-compliant SafeHtml.

I

INNOCUOUS - Static variable in class com.google.common.html.types.SafeUrl
The SafeUrl generated by SafeUrls.sanitize(String) (or portable.builders.SafeUrls) when passed an unsafe URL.
INNOCUOUS_STRING - Static variable in class com.google.common.html.types.SafeUrl
The innocuous string generated by SafeUrls.sanitize(String) (or portable.builders.SafeUrls) when passed an unsafe URL.

L

left(String) - Method in class com.google.common.html.types.SafeStyleBuilder
Sets value as the left property.
lineHeight(String) - Method in class com.google.common.html.types.SafeStyleBuilder
Sets value as the line-height property.

M

margin(String) - Method in class com.google.common.html.types.SafeStyleBuilder
Sets value as the margin property.

N

newSafeHtmlForTest(String) - Static method in class com.google.common.html.types.testing.HtmlConversions
Creates a SafeHtml wrapping the given string.
newSafeHtmlProtoForTest(String) - Static method in class com.google.common.html.types.testing.HtmlConversions
Creates a SafeHtmlProto wrapping the given string.
newSafeScriptForTest(String) - Static method in class com.google.common.html.types.testing.HtmlConversions
Creates a SafeScript wrapping the given string.
newSafeScriptProtoForTest(String) - Static method in class com.google.common.html.types.testing.HtmlConversions
Creates a SafeScriptProto wrapping the given string.
newSafeStyleForTest(String) - Static method in class com.google.common.html.types.testing.HtmlConversions
Creates a SafeStyle wrapping the given string.
newSafeStyleProtoForTest(String) - Static method in class com.google.common.html.types.testing.HtmlConversions
Creates a SafeStyleProto wrapping the given string.
newSafeStyleSheetForTest(String) - Static method in class com.google.common.html.types.testing.HtmlConversions
Creates a SafeStyleSheet wrapping the given string.
newSafeStyleSheetProtoForTest(String) - Static method in class com.google.common.html.types.testing.HtmlConversions
Creates a SafeStyleSheetProto wrapping the given string.
newSafeUrlForTest(String) - Static method in class com.google.common.html.types.testing.HtmlConversions
Creates a SafeUrl wrapping the given string.
newSafeUrlProtoForTest(String) - Static method in class com.google.common.html.types.testing.HtmlConversions
Creates a SafeUrlProto wrapping the given string.
newTrustedResourceUrlForTest(String) - Static method in class com.google.common.html.types.testing.HtmlConversions
Creates a TrustedResourceUrl wrapping the given string.
newTrustedResourceUrlProtoForTest(String) - Static method in class com.google.common.html.types.testing.HtmlConversions
Creates a TrustedResourceUrlProto wrapping the given string.
nextEscapeIndex(CharSequence, int, int) - Method in class com.google.common.html.types.escape.PercentEscaper
 
nextEscapeIndex(CharSequence, int, int) - Method in class com.google.common.html.types.escape.UnicodeEscaper
Scans a sub-sequence of characters from a given CharSequence, returning the index of the next character that requires escaping.

O

overflow(String) - Method in class com.google.common.html.types.SafeStyleBuilder
Sets value as the overflow property.
overflowX(String) - Method in class com.google.common.html.types.SafeStyleBuilder
Sets value as the overflow-x property.
overflowY(String) - Method in class com.google.common.html.types.SafeStyleBuilder
Sets value as the overflow-y property.

P

padding(String) - Method in class com.google.common.html.types.SafeStyleBuilder
Sets value as the padding property.
PercentEscaper - Class in com.google.common.html.types.escape
A UnicodeEscaper that escapes some set of Java characters using a UTF-8 based percent encoding scheme.
PercentEscaper(String, boolean) - Constructor for class com.google.common.html.types.escape.PercentEscaper
Constructs a percent escaper with the specified safe characters and optional handling of the space character.

R

right(String) - Method in class com.google.common.html.types.SafeStyleBuilder
Sets value as the right property.

S

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
Values that can be passed to SafeHtmlBuilder.setDir(DirValue).
SafeHtmlBuilder.TargetValue - Enum in com.google.common.html.types
Values that can be passed to SafeHtmlBuilder.setTarget(TargetValue).
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
A builder for values of type SafeStyle.
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
Protocol conversions and factory methods for SafeStyleSheet.
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.

T

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
Protocol conversions and factory methods for TrustedResourceUrl.

U

UncheckedConversions - Class in com.google.common.html.types
Unchecked conversions to create values of com.google.common.html types from plain strings.
UnicodeEscaper - Class in com.google.common.html.types.escape
An Escaper that converts literal text into a format safe for inclusion in a particular context (such as an XML document).
UnicodeEscaper() - Constructor for class com.google.common.html.types.escape.UnicodeEscaper
Constructor for use by subclasses.
useSlashOnVoid() - Method in class com.google.common.html.types.SafeHtmlBuilder
Causes the builder to use a slash on the tag of a void element, emitting e.g.

V

valueOf(String) - Static method in enum com.google.common.html.types.SafeHtmlBuilder.DirValue
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.common.html.types.SafeHtmlBuilder.TargetValue
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.google.common.html.types.SafeHtmlBuilder.DirValue
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.common.html.types.SafeHtmlBuilder.TargetValue
Returns an array containing the constants of this enum type, in the order they are declared.

W

width(String) - Method in class com.google.common.html.types.SafeStyleBuilder
Sets value as the width property.
A B C D E F G H I L M N O P R S T U V W 
Skip navigation links