# Uses of Class
com.norconex.commons.lang.url.UrlNormalizer

Packages that use UrlNormalizer
Package
Description
com.norconex.commons.lang.url
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 UrlNormalizer
  Modifier and Type
  Method
  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 first "#" character encountered to the end of the URL).
  `UrlNormalizer`
  UrlNormalizer.`removeQueryString()`
  Removes the URL query string (from the "?"
  `UrlNormalizer`
  UrlNormalizer.`removeSessionIds()`
  Removes a URL-based session id.
  `UrlNormalizer`
  UrlNormalizer.`removeTrailingFragment()`
  Removes the URL fragment like `removeFragment()`, but only if it is found after the last URL segment (/...).
  `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.