Uses of Class
com.norconex.commons.lang.url.UrlNormalizer
Packages that use UrlNormalizer
Package
Description
Classes making it easier to deal with and manipulate URLs.
-
Uses of UrlNormalizer in com.norconex.commons.lang.url
Methods in com.norconex.commons.lang.url that return UrlNormalizerModifier and TypeMethodDescriptionUrlNormalizer.addDirectoryTrailingSlash()Adds a trailing slash (/) to a URL ending with a directory.UrlNormalizer.addDomainTrailingSlash()Adds a trailing slash (/) right after the domain for URLs with no path, before any fragment (#) or query string (?).UrlNormalizer.addTrailingSlash()Deprecated.UrlNormalizer.addWWW()Adds "www." domain name prefix.UrlNormalizer.decodeUnreservedCharacters()Decodes percent-encoded unreserved characters.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.encodeSpaces()Encodes space characters into plus signs (+) if they are part of the query string.UrlNormalizer.lowerCase()Converts the entire URL to lower case, including scheme, host name, path, query string parameter names and values.UrlNormalizer.lowerCasePath()Converts the URL path to lower case.UrlNormalizer.lowerCaseQuery()Converts the URL query string to lower case, which includes both the parameter names and values.UrlNormalizer.lowerCaseQueryParameterNames()Converts the URL query parameter names to lower case, leaving query parameter values intact.UrlNormalizer.lowerCaseQueryParameterValues()Converts the URL query parameter values to lower case, leaving query parameter names intact.UrlNormalizer.lowerCaseSchemeHost()Converts the scheme and host to lower case.UrlNormalizer.removeDefaultPort()Removes the default port (80 for http, and 443 for https).UrlNormalizer.removeDirectoryIndex()Removes directory index files.UrlNormalizer.removeDotSegments()Removes the unnecessary "." and ".." segments from the URL path.UrlNormalizer.removeDuplicateSlashes()Removes duplicate slashes.UrlNormalizer.removeEmptyParameters()Removes empty parameters.UrlNormalizer.removeFragment()Removes the URL fragment (from the first "#" character encountered to the end of the URL).UrlNormalizer.removeQueryString()Removes the URL query string (from the "?"UrlNormalizer.removeSessionIds()Removes a URL-based session id.UrlNormalizer.removeTrailingFragment()Removes the URL fragment likeremoveFragment(), but only if it is found after the last URL segment (/...).UrlNormalizer.removeTrailingHash()Removes trailing hash character ("#").UrlNormalizer.removeTrailingQuestionMark()Removes trailing question mark ("?").UrlNormalizer.removeTrailingSlash()Removes any trailing slash (/) from a URL, before fragment (#) or query string (?).UrlNormalizer.removeWWW()Removes "www." domain name prefix.UrlNormalizer.replaceIPWithDomainName()Replaces IP address with domain name.UrlNormalizer.secureScheme()Convertshttpscheme tohttps.UrlNormalizer.sortQueryParameters()Sorts query parameters.UrlNormalizer.unsecureScheme()Convertshttpsscheme tohttp.UrlNormalizer.upperCaseEscapeSequence()Converts letters in URL-encoded escape sequences to upper case.
addDirectoryTrailingSlash()