A C D E G H I L P Q R S T U
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- addDirectoryTrailingSlash() - Method in class com.networknt.url.URLNormalizer
-
Adds a trailing slash (/) to a URL ending with a directory.
- addDomainTrailingSlash() - Method in class com.networknt.url.URLNormalizer
-
Adds a trailing slash (/) right after the domain for URLs with no path, before any fragment (#) or query string (?).
- addString(String, String...) - Method in class com.networknt.url.QueryString
-
Adds one or multiple string values.
- addTrailingSlash() - Method in class com.networknt.url.URLNormalizer
-
Deprecated.Since 1.11.0, use
addDirectoryTrailingSlash() - addWWW() - Method in class com.networknt.url.URLNormalizer
-
Adds "www." domain name prefix.
- applyOnURL(String) - Method in class com.networknt.url.QueryString
-
Apply this url QueryString on the given URL.
- applyOnURL(URL) - Method in class com.networknt.url.QueryString
-
Apply this url QueryString on the given URL.
C
- com.networknt.url - package com.networknt.url
D
- decodeUnreservedCharacters() - Method in class com.networknt.url.URLNormalizer
-
Decodes percent-encoded unreserved characters.
- DEFAULT_HTTP_PORT - Static variable in class com.networknt.url.HttpURL
-
Default URL HTTP Port.
- DEFAULT_HTTPS_PORT - Static variable in class com.networknt.url.HttpURL
-
Default Secure URL HTTP Port.
E
- encodeNonURICharacters() - Method in class com.networknt.url.URLNormalizer
-
Encodes all characters that are not supported characters in a URI (not to confuse with URL), as defined by the RFC 3986 standard.
- encodePath(String) - Static method in class com.networknt.url.HttpURL
-
URL-Encodes a URL path.
- encodeQueryString(String) - Static method in class com.networknt.url.HttpURL
-
URL-Encodes the query string portion of a URL.
- encodeSpaces() - Method in class com.networknt.url.URLNormalizer
-
Encodes space characters into plus signs (+) if they are part of the query string.
- equals(Object) - Method in class com.networknt.url.HttpURL
G
- getEncoding() - Method in class com.networknt.url.HttpURL
-
Gets the character encoding.
- getEncoding() - Method in class com.networknt.url.QueryString
-
Gets the character encoding.
- getFragment() - Method in class com.networknt.url.HttpURL
-
Gets the URL fragment.
- getHost() - Method in class com.networknt.url.HttpURL
-
Gets the host portion of the URL.
- getLastPathSegment() - Method in class com.networknt.url.HttpURL
-
Gets the last URL path segment without the query string.
- getPath() - Method in class com.networknt.url.HttpURL
-
Gets the URL path.
- getPort() - Method in class com.networknt.url.HttpURL
-
Gets the URL port.
- getProtocol() - Method in class com.networknt.url.HttpURL
-
Gets the protocol portion of the URL (e.g.
- getQueryString() - Method in class com.networknt.url.HttpURL
-
Gets the URL query string.
- getRoot() - Method in class com.networknt.url.HttpURL
-
Gets the root of this HttpUrl.
- getRoot(String) - Static method in class com.networknt.url.HttpURL
-
Gets the root of a URL.
H
- hashCode() - Method in class com.networknt.url.HttpURL
- HttpURL - Class in com.networknt.url
-
This class act as a mutable URL, which could be a replacement or "wrapper" to the
URLclass. - HttpURL() - Constructor for class com.networknt.url.HttpURL
-
Creates a blank HttpURL using UTF-8 for URL encoding.
- HttpURL(String) - Constructor for class com.networknt.url.HttpURL
-
Creates a new HttpURL from the URL string using UTF-8 for URL encoding.
- HttpURL(String, String) - Constructor for class com.networknt.url.HttpURL
-
Creates a new HttpURL from the URL string using the provided encoding for URL encoding.
- HttpURL(URL) - Constructor for class com.networknt.url.HttpURL
-
Creates a new HttpURL from the URL object using UTF-8 for URL encoding.
- HttpURL(URL, String) - Constructor for class com.networknt.url.HttpURL
-
Creates a new HttpURL from the URL object using the provided encoding for URL encoding.
I
- isEmpty() - Method in class com.networknt.url.QueryString
- isPortDefault() - Method in class com.networknt.url.HttpURL
-
Whether this URL uses the default port for the protocol.
- isSecure() - Method in class com.networknt.url.HttpURL
-
Whether this URL is secure (e.g.
L
- lowerCaseSchemeHost() - Method in class com.networknt.url.URLNormalizer
-
Converts the scheme and host to lower case.
P
- PROTOCOL_HTTP - Static variable in class com.networknt.url.HttpURL
-
Constant for "http" protocol.
- PROTOCOL_HTTPS - Static variable in class com.networknt.url.HttpURL
-
Constant for "https" protocol.
Q
- QueryString - Class in com.networknt.url
-
Provides utility methods for getting and setting attributes on a URL query string.
- QueryString() - Constructor for class com.networknt.url.QueryString
-
Constructor.
- QueryString(String) - Constructor for class com.networknt.url.QueryString
-
Constructor.
- QueryString(String, String) - Constructor for class com.networknt.url.QueryString
-
Constructor.
- QueryString(URL) - Constructor for class com.networknt.url.QueryString
-
Default URL character encoding is UTF-8.
- QueryString(URL, String) - Constructor for class com.networknt.url.QueryString
-
Constructor.
R
- removeDefaultPort() - Method in class com.networknt.url.URLNormalizer
-
Removes the default port (80 for http, and 443 for https).
- removeDirectoryIndex() - Method in class com.networknt.url.URLNormalizer
-
Removes directory index files.
- removeDotSegments() - Method in class com.networknt.url.URLNormalizer
-
Removes the unnecessary "." and ".." segments from the URL path.
- removeDuplicateSlashes() - Method in class com.networknt.url.URLNormalizer
-
Removes duplicate slashes.
- removeEmptyParameters() - Method in class com.networknt.url.URLNormalizer
-
Removes empty parameters.
- removeFragment() - Method in class com.networknt.url.URLNormalizer
-
Removes the URL fragment (from the "#" character until the end).
- removeSessionIds() - Method in class com.networknt.url.URLNormalizer
-
Removes a URL-based session id.
- removeTrailingHash() - Method in class com.networknt.url.URLNormalizer
-
Removes trailing hash character ("#").
- removeTrailingQuestionMark() - Method in class com.networknt.url.URLNormalizer
-
Removes trailing question mark ("?").
- removeTrailingSlash() - Method in class com.networknt.url.URLNormalizer
-
Removes any trailing slash (/) from a URL, before fragment (#) or query string (?).
- removeWWW() - Method in class com.networknt.url.URLNormalizer
-
Removes "www." domain name prefix.
- replaceIPWithDomainName() - Method in class com.networknt.url.URLNormalizer
-
Replaces IP address with domain name.
S
- secureScheme() - Method in class com.networknt.url.URLNormalizer
-
Converts
httpscheme tohttps. - setFragment(String) - Method in class com.networknt.url.HttpURL
-
Sets the URL fragment.
- setHost(String) - Method in class com.networknt.url.HttpURL
-
Sets the host portion of the URL.
- setPath(String) - Method in class com.networknt.url.HttpURL
-
Sets the URL path.
- setPort(int) - Method in class com.networknt.url.HttpURL
-
Sets the URL port.
- setProtocol(String) - Method in class com.networknt.url.HttpURL
-
Sets the protocol portion of the URL.
- setQueryString(QueryString) - Method in class com.networknt.url.HttpURL
-
Sets the URL query string.
- sortQueryParameters() - Method in class com.networknt.url.URLNormalizer
-
Sorts query parameters.
T
- toAbsolute(String, String) - Static method in class com.networknt.url.HttpURL
-
Converts a relative URL to an absolute one, based on the supplied base URL.
- toString() - Method in class com.networknt.url.HttpURL
-
Returns a string representation of this URL, properly encoded.
- toString() - Method in class com.networknt.url.QueryString
-
Convert this
QueryStringto a URL-encoded string representation that can be appended as is to a URL with no query string. - toString() - Method in class com.networknt.url.URLNormalizer
-
Returns the normalized URL as string.
- toURI() - Method in class com.networknt.url.HttpURL
-
Converts this HttpURL to a
URI, making sure appropriate characters are escaped properly. - toURI() - Method in class com.networknt.url.URLNormalizer
-
Returns the normalized URL as
URI. - toURI(String) - Static method in class com.networknt.url.HttpURL
-
Converts the supplied URL to a
URI, making sure appropriate characters are encoded properly using UTF-8. - toURL() - Method in class com.networknt.url.HttpURL
-
Converts this HttpURL to a regular
URL, making sure appropriate characters are escaped properly. - toURL() - Method in class com.networknt.url.URLNormalizer
-
Returns the normalized URL as
URL. - toURL(String) - Static method in class com.networknt.url.HttpURL
-
Converts the supplied URL to a
URL, making sure appropriate characters are encoded properly using UTF-8.
U
- unsecureScheme() - Method in class com.networknt.url.URLNormalizer
-
Converts
httpsscheme tohttp. - upperCaseEscapeSequence() - Method in class com.networknt.url.URLNormalizer
-
Converts letters in URL-encoded escape sequences to upper case.
- URLNormalizer - Class in com.networknt.url
-
The general idea behind URL normalization is to make different URLs "equivalent" (i.e.
- URLNormalizer(String) - Constructor for class com.networknt.url.URLNormalizer
-
Create a new
URLNormalizerinstance. - URLNormalizer(URL) - Constructor for class com.networknt.url.URLNormalizer
-
Create a new
URLNormalizerinstance.
All Classes All Packages