- ACCEPT - Static variable in class com.diffplug.common.net.HttpHeaders
-
The HTTP Accept header field name.
- ACCEPT_CHARSET - Static variable in class com.diffplug.common.net.HttpHeaders
-
The HTTP Accept-Charset header field name.
- ACCEPT_ENCODING - Static variable in class com.diffplug.common.net.HttpHeaders
-
The HTTP Accept-Encoding header field name.
- ACCEPT_LANGUAGE - Static variable in class com.diffplug.common.net.HttpHeaders
-
The HTTP Accept-Language header field name.
- ACCEPT_RANGES - Static variable in class com.diffplug.common.net.HttpHeaders
-
The HTTP Accept-Ranges header field name.
- ACCESS_CONTROL_ALLOW_CREDENTIALS - Static variable in class com.diffplug.common.net.HttpHeaders
-
The HTTP Access-Control-Allow-Credentials header field name.
- ACCESS_CONTROL_ALLOW_HEADERS - Static variable in class com.diffplug.common.net.HttpHeaders
-
The HTTP Access-Control-Allow-Headers header field name.
- ACCESS_CONTROL_ALLOW_METHODS - Static variable in class com.diffplug.common.net.HttpHeaders
-
The HTTP Access-Control-Allow-Methods header field name.
- ACCESS_CONTROL_ALLOW_ORIGIN - Static variable in class com.diffplug.common.net.HttpHeaders
-
The HTTP Access-Control-Allow-Origin header field name.
- ACCESS_CONTROL_EXPOSE_HEADERS - Static variable in class com.diffplug.common.net.HttpHeaders
-
The HTTP Access-Control-Expose-Headers header field name.
- ACCESS_CONTROL_MAX_AGE - Static variable in class com.diffplug.common.net.HttpHeaders
-
The HTTP Access-Control-Max-Age header field name.
- ACCESS_CONTROL_REQUEST_HEADERS - Static variable in class com.diffplug.common.net.HttpHeaders
-
The HTTP Access-Control-Request-Headers header field name.
- ACCESS_CONTROL_REQUEST_METHOD - Static variable in class com.diffplug.common.net.HttpHeaders
-
The HTTP Access-Control-Request-Method header field name.
- addEscape(char, String) - Method in class com.diffplug.common.escape.CharEscaperBuilder
-
Add a new mapping from an index to an object to the escaping.
- addEscape(char, String) - Method in class com.diffplug.common.escape.Escapers.Builder
-
Adds a replacement string for the given input character.
- addEscapes(char[], String) - Method in class com.diffplug.common.escape.CharEscaperBuilder
-
Add multiple mappings at once for a particular index.
- AGE - Static variable in class com.diffplug.common.net.HttpHeaders
-
The HTTP Age header field name.
- ALLOW - Static variable in class com.diffplug.common.net.HttpHeaders
-
The HTTP Allow header field name.
- ANY_APPLICATION_TYPE - Static variable in class com.diffplug.common.net.MediaType
-
- ANY_AUDIO_TYPE - Static variable in class com.diffplug.common.net.MediaType
-
- ANY_IMAGE_TYPE - Static variable in class com.diffplug.common.net.MediaType
-
- ANY_TEXT_TYPE - Static variable in class com.diffplug.common.net.MediaType
-
- ANY_TYPE - Static variable in class com.diffplug.common.net.MediaType
-
- ANY_VIDEO_TYPE - Static variable in class com.diffplug.common.net.MediaType
-
- APPLE_MOBILE_CONFIG - Static variable in class com.diffplug.common.net.MediaType
-
- APPLE_PASSBOOK - Static variable in class com.diffplug.common.net.MediaType
-
- APPLICATION_BINARY - Static variable in class com.diffplug.common.net.MediaType
-
- APPLICATION_XML_UTF_8 - Static variable in class com.diffplug.common.net.MediaType
-
As described in
RFC 3023, this constant (
application/xml) is used for XML documents that are “unreadable by casual users.”
MediaType.XML_UTF_8 is provided for documents that may be read by users.
- ArrayBasedCharEscaper - Class in com.diffplug.common.escape
-
A
CharEscaper that uses an array to quickly look up replacement characters for a given
char value.
- ArrayBasedCharEscaper(Map<Character, String>, char, char) - Constructor for class com.diffplug.common.escape.ArrayBasedCharEscaper
-
Creates a new ArrayBasedCharEscaper instance with the given replacement map and specified safe range.
- ArrayBasedCharEscaper(ArrayBasedEscaperMap, char, char) - Constructor for class com.diffplug.common.escape.ArrayBasedCharEscaper
-
Creates a new ArrayBasedCharEscaper instance with the given replacement map and specified safe range.
- ArrayBasedEscaperMap - Class in com.diffplug.common.escape
-
- ArrayBasedUnicodeEscaper - Class in com.diffplug.common.escape
-
A
UnicodeEscaper that uses an array to quickly look up replacement characters for a given code point.
- ArrayBasedUnicodeEscaper(Map<Character, String>, int, int, String) - Constructor for class com.diffplug.common.escape.ArrayBasedUnicodeEscaper
-
Creates a new ArrayBasedUnicodeEscaper instance with the given replacement map and specified safe range.
- ArrayBasedUnicodeEscaper(ArrayBasedEscaperMap, int, int, String) - Constructor for class com.diffplug.common.escape.ArrayBasedUnicodeEscaper
-
Creates a new ArrayBasedUnicodeEscaper instance with the given replacement map and specified safe range.
- asFunction() - Method in class com.diffplug.common.escape.Escaper
-
- ATOM_UTF_8 - Static variable in class com.diffplug.common.net.MediaType
-
- AUTHORIZATION - Static variable in class com.diffplug.common.net.HttpHeaders
-
The HTTP Authorization header field name.
- CACHE_CONTROL - Static variable in class com.diffplug.common.net.HttpHeaders
-
The HTTP Cache-Control header field name.
- CACHE_MANIFEST_UTF_8 - Static variable in class com.diffplug.common.net.MediaType
-
- CharEscaper - Class in com.diffplug.common.escape
-
An object that converts literal text into a format safe for inclusion in a particular context (such as an XML document).
- CharEscaper() - Constructor for class com.diffplug.common.escape.CharEscaper
-
Constructor for use by subclasses.
- CharEscaperBuilder - Class in com.diffplug.common.escape
-
Simple helper class to build a “sparse” array of objects based on the indexes that were added to it.
- CharEscaperBuilder() - Constructor for class com.diffplug.common.escape.CharEscaperBuilder
-
Construct a new sparse array builder.
- charset() - Method in class com.diffplug.common.net.MediaType
-
Returns an optional charset for the value of the charset parameter if it is specified.
- child(String) - Method in class com.diffplug.common.net.InternetDomainName
-
Creates and returns a new InternetDomainName by prepending the argument and a dot to the current name.
- codePointAt(CharSequence, int, int) - Static method in class com.diffplug.common.escape.UnicodeEscaper
-
Returns the Unicode code point of the character at the given index.
- coerceToInteger(InetAddress) - Static method in class com.diffplug.common.net.InetAddresses
-
Returns an integer representing an IPv4 address regardless of whether the supplied argument is an IPv4 address or not.
- com.diffplug.common.escape - package com.diffplug.common.escape
-
Interfaces, utilities, and simple implementations of escapers and encoders.
- com.diffplug.common.html - package com.diffplug.common.html
-
Escapers for HTML.
- com.diffplug.common.net - package com.diffplug.common.net
-
This package contains utility methods and classes for working with net addresses (numeric IP and domain names).
- com.diffplug.common.xml - package com.diffplug.common.xml
-
Escapers for XML.
- computeReplacement(CharEscaper, char) - Static method in class com.diffplug.common.escape.Escapers
-
Returns a string that would replace the given character in the specified escaper, or null if no replacement should be made.
- computeReplacement(UnicodeEscaper, int) - Static method in class com.diffplug.common.escape.Escapers
-
Returns a string that would replace the given character in the specified escaper, or null if no replacement should be made.
- CONNECTION - Static variable in class com.diffplug.common.net.HttpHeaders
-
The HTTP Connection header field name.
- CONTENT_DISPOSITION - Static variable in class com.diffplug.common.net.HttpHeaders
-
The HTTP Content-Disposition header field name.
- CONTENT_ENCODING - Static variable in class com.diffplug.common.net.HttpHeaders
-
The HTTP Content-Encoding header field name.
- CONTENT_LANGUAGE - Static variable in class com.diffplug.common.net.HttpHeaders
-
The HTTP Content-Language header field name.
- CONTENT_LENGTH - Static variable in class com.diffplug.common.net.HttpHeaders
-
The HTTP Content-Length header field name.
- CONTENT_LOCATION - Static variable in class com.diffplug.common.net.HttpHeaders
-
The HTTP Content-Location header field name.
- CONTENT_MD5 - Static variable in class com.diffplug.common.net.HttpHeaders
-
The HTTP Content-MD5 header field name.
- CONTENT_RANGE - Static variable in class com.diffplug.common.net.HttpHeaders
-
The HTTP Content-Range header field name.
- CONTENT_SECURITY_POLICY - Static variable in class com.diffplug.common.net.HttpHeaders
-
- CONTENT_SECURITY_POLICY_REPORT_ONLY - Static variable in class com.diffplug.common.net.HttpHeaders
-
- CONTENT_TYPE - Static variable in class com.diffplug.common.net.HttpHeaders
-
The HTTP Content-Type header field name.
- COOKIE - Static variable in class com.diffplug.common.net.HttpHeaders
-
The HTTP Cookie header field name.
- create(Map<Character, String>) - Static method in class com.diffplug.common.escape.ArrayBasedEscaperMap
-
Returns a new ArrayBasedEscaperMap for creating ArrayBasedCharEscaper or ArrayBasedUnicodeEscaper instances.
- create(String, String) - Static method in class com.diffplug.common.net.MediaType
-
Creates a new media type with the given type and subtype.
- CRW - Static variable in class com.diffplug.common.net.MediaType
-
- CSS_UTF_8 - Static variable in class com.diffplug.common.net.MediaType
-
- CSV_UTF_8 - Static variable in class com.diffplug.common.net.MediaType
-
- EOT - Static variable in class com.diffplug.common.net.MediaType
-
- EPUB - Static variable in class com.diffplug.common.net.MediaType
-
- equals(Object) - Method in class com.diffplug.common.net.HostAndPort
-
- equals(Object) - Method in class com.diffplug.common.net.HostSpecifier
-
- equals(Object) - Method in class com.diffplug.common.net.InternetDomainName
-
Equality testing is based on the text supplied by the caller, after normalization as described in the class documentation.
- equals(Object) - Method in class com.diffplug.common.net.MediaType
-
- escape(String) - Method in class com.diffplug.common.escape.ArrayBasedCharEscaper
-
- escape(char) - Method in class com.diffplug.common.escape.ArrayBasedCharEscaper
-
Escapes a single character using the replacement array and safe range values.
- escape(String) - Method in class com.diffplug.common.escape.ArrayBasedUnicodeEscaper
-
- escape(int) - Method in class com.diffplug.common.escape.ArrayBasedUnicodeEscaper
-
Escapes a single Unicode code point using the replacement array and safe range values.
- escape(String) - Method in class com.diffplug.common.escape.CharEscaper
-
Returns the escaped form of a given literal string.
- escape(char) - Method in class com.diffplug.common.escape.CharEscaper
-
Returns the escaped form of the given character, or null if this character does not need to be escaped.
- escape(String) - Method in class com.diffplug.common.escape.Escaper
-
Returns the escaped form of a given literal string.
- escape(int) - Method in class com.diffplug.common.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.diffplug.common.escape.UnicodeEscaper
-
Returns the escaped form of a given literal string.
- escape(String) - Method in class com.diffplug.common.net.PercentEscaper
-
- escape(int) - Method in class com.diffplug.common.net.PercentEscaper
-
Escapes the given Unicode code point in UTF-8.
- Escaper - Class in com.diffplug.common.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.diffplug.common.escape.Escaper
-
Constructor for use by subclasses.
- Escapers - Class in com.diffplug.common.escape
-
Static utility methods pertaining to
Escaper instances.
- Escapers.Builder - Class in com.diffplug.common.escape
-
A builder for simple, fast escapers.
- escapeSlow(String, int) - Method in class com.diffplug.common.escape.CharEscaper
-
Returns the escaped form of a given literal string, starting at the given index.
- escapeSlow(String, int) - Method in class com.diffplug.common.escape.UnicodeEscaper
-
Returns the escaped form of a given literal string, starting at the given index.
- escapeUnsafe(char) - Method in class com.diffplug.common.escape.ArrayBasedCharEscaper
-
Escapes a char value that has no direct explicit value in the replacement array and lies outside the stated safe range.
- escapeUnsafe(int) - Method in class com.diffplug.common.escape.ArrayBasedUnicodeEscaper
-
Escapes a code point that has no direct explicit value in the replacement array and lies outside the stated safe range.
- ETAG - Static variable in class com.diffplug.common.net.HttpHeaders
-
The HTTP ETag header field name.
- EXPECT - Static variable in class com.diffplug.common.net.HttpHeaders
-
The HTTP Expect header field name.
- EXPIRES - Static variable in class com.diffplug.common.net.HttpHeaders
-
The HTTP Expires header field name.
- I_CALENDAR_UTF_8 - Static variable in class com.diffplug.common.net.MediaType
-
- ICO - Static variable in class com.diffplug.common.net.MediaType
-
- IF_MATCH - Static variable in class com.diffplug.common.net.HttpHeaders
-
The HTTP If-Match header field name.
- IF_MODIFIED_SINCE - Static variable in class com.diffplug.common.net.HttpHeaders
-
The HTTP If-Modified-Since header field name.
- IF_NONE_MATCH - Static variable in class com.diffplug.common.net.HttpHeaders
-
The HTTP If-None-Match header field name.
- IF_RANGE - Static variable in class com.diffplug.common.net.HttpHeaders
-
The HTTP If-Range header field name.
- IF_UNMODIFIED_SINCE - Static variable in class com.diffplug.common.net.HttpHeaders
-
The HTTP If-Unmodified-Since header field name.
- increment(InetAddress) - Static method in class com.diffplug.common.net.InetAddresses
-
Returns a new InetAddress that is one more than the passed in address.
- InetAddresses - Class in com.diffplug.common.net
-
Static utility methods pertaining to
InetAddress instances.
- InetAddresses.TeredoInfo - Class in com.diffplug.common.net
-
A simple immutable data class to encapsulate the information to be found in a Teredo address.
- InternetDomainName - Class in com.diffplug.common.net
-
An immutable well-formed internet domain name, such as com or foo.co.uk.
- is(MediaType) - Method in class com.diffplug.common.net.MediaType
-
Returns
true if this instance falls within the range (as defined by
the HTTP Accept header) given by the argument according to three criteria:
- is6to4Address(Inet6Address) - Static method in class com.diffplug.common.net.InetAddresses
-
Evaluates whether the argument is a 6to4 address.
- isCompatIPv4Address(Inet6Address) - Static method in class com.diffplug.common.net.InetAddresses
-
Evaluates whether the argument is an IPv6 “compat” address.
- isInetAddress(String) - Static method in class com.diffplug.common.net.InetAddresses
-
Returns true if the supplied string is a valid IP string literal, false otherwise.
- isIsatapAddress(Inet6Address) - Static method in class com.diffplug.common.net.InetAddresses
-
Evaluates whether the argument is an ISATAP address.
- isMappedIPv4Address(String) - Static method in class com.diffplug.common.net.InetAddresses
-
Evaluates whether the argument is an “IPv4 mapped” IPv6 address.
- isMaximum(InetAddress) - Static method in class com.diffplug.common.net.InetAddresses
-
Returns true if the InetAddress is either 255.255.255.255 for IPv4 or ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff for IPv6.
- isPublicSuffix() - Method in class com.diffplug.common.net.InternetDomainName
-
Indicates whether this domain name represents a
public suffix, as defined by the Mozilla Foundation’s
Public Suffix List (PSL).
- isTeredoAddress(Inet6Address) - Static method in class com.diffplug.common.net.InetAddresses
-
Evaluates whether the argument is a Teredo address.
- isTopPrivateDomain() - Method in class com.diffplug.common.net.InternetDomainName
-
Indicates whether this domain name is composed of exactly one subdomain component followed by a
public suffix.
- isUnderPublicSuffix() - Method in class com.diffplug.common.net.InternetDomainName
-
Indicates whether this domain name ends in a
public suffix, while not being a public suffix itself.
- isUriInetAddress(String) - Static method in class com.diffplug.common.net.InetAddresses
-
Returns true if the supplied string is a valid URI IP string literal, false otherwise.
- isValid(String) - Static method in class com.diffplug.common.net.HostSpecifier
-
- isValid(String) - Static method in class com.diffplug.common.net.InternetDomainName
-
Indicates whether the argument is a syntactically valid domain name using lenient validation.