Package | Description |
---|---|
com.norconex.commons.lang.url |
Classes making it easier to deal with and manipulate URLs.
|
Modifier and Type | Method and Description |
---|---|
URLNormalizer |
URLNormalizer.addDirectoryTrailingSlash()
Adds a trailing slash (/) to a URL ending with a directory.
|
URLNormalizer |
URLNormalizer.addDomainTrailingSlash()
Adds a trailing slash (/) right after the domain for URLs with no
path, before any fragment (#) or query string (?).
|
URLNormalizer |
URLNormalizer.addTrailingSlash()
Deprecated.
Since 1.11.0, use
addDirectoryTrailingSlash() |
URLNormalizer |
URLNormalizer.addWWW()
Adds "www." domain name prefix.
|
URLNormalizer |
URLNormalizer.decodeUnreservedCharacters()
Decodes percent-encoded unreserved characters.
|
URLNormalizer |
URLNormalizer.encodeNonURICharacters()
Encodes all characters that are not supported characters
in a URI (not to confuse with URL), as defined
by the RFC 3986
standard.
|
URLNormalizer |
URLNormalizer.encodeSpaces()
Encodes space characters into plus signs (+) if they are part of the
query string.
|
URLNormalizer |
URLNormalizer.lowerCase()
Converts the entire URL to lower case, including scheme, host name,
path, query string parameter names and values.
|
URLNormalizer |
URLNormalizer.lowerCasePath()
Converts the URL path to lower case.
|
URLNormalizer |
URLNormalizer.lowerCaseQuery()
Converts the URL query string to lower case, which includes
both the parameter names and values.
|
URLNormalizer |
URLNormalizer.lowerCaseQueryParameterNames()
Converts the URL query parameter names to lower case, leaving
query parameter values intact.
|
URLNormalizer |
URLNormalizer.lowerCaseQueryParameterValues()
Converts the URL query parameter values to lower case, leaving
query parameter names intact.
|
URLNormalizer |
URLNormalizer.lowerCaseSchemeHost()
Converts the scheme and host to lower case.
|
URLNormalizer |
URLNormalizer.removeDefaultPort()
Removes the default port (80 for http, and 443 for https).
|
URLNormalizer |
URLNormalizer.removeDirectoryIndex()
Removes directory index files.
|
URLNormalizer |
URLNormalizer.removeDotSegments()
Removes the unnecessary "." and ".." segments from the URL path.
|
URLNormalizer |
URLNormalizer.removeDuplicateSlashes()
Removes duplicate slashes.
|
URLNormalizer |
URLNormalizer.removeEmptyParameters()
Removes empty parameters.
|
URLNormalizer |
URLNormalizer.removeFragment()
Removes the URL fragment (from the "#" character until the end).
|
URLNormalizer |
URLNormalizer.removeQueryString()
Removes the URL query string (from the "?" character until the end
or the first # character).
|
URLNormalizer |
URLNormalizer.removeSessionIds()
Removes a URL-based session id.
|
URLNormalizer |
URLNormalizer.removeTrailingHash()
Removes trailing hash character ("#").
|
URLNormalizer |
URLNormalizer.removeTrailingQuestionMark()
Removes trailing question mark ("?").
|
URLNormalizer |
URLNormalizer.removeTrailingSlash()
Removes any trailing slash (/) from a URL, before fragment
(#) or query string (?).
|
URLNormalizer |
URLNormalizer.removeWWW()
Removes "www." domain name prefix.
|
URLNormalizer |
URLNormalizer.replaceIPWithDomainName()
Replaces IP address with domain name.
|
URLNormalizer |
URLNormalizer.secureScheme()
Converts
http scheme to https . |
URLNormalizer |
URLNormalizer.sortQueryParameters()
Sorts query parameters.
|
URLNormalizer |
URLNormalizer.unsecureScheme()
Converts
https scheme to http . |
URLNormalizer |
URLNormalizer.upperCaseEscapeSequence()
Converts letters in URL-encoded escape sequences to upper case.
|
Copyright © 2008–2021 Norconex Inc.. All rights reserved.