Generated by
JDiff

org.springframework.web.util Documentation Differences

This file contains all the changes in documentation in the package org.springframework.web.util as colored differences. Deletions are shown like this, and additions are shown like this.
If no deletions or additions are shown in an entry, the HTML tags will be what has changed. The new HTML tags are shown in the differences. If no documentation existed, and then some was added in a later version, this change is noted in the appropriate class pages of differences, but the change is not shown on this page. Only changes in existing text are shown here. Similarly, documentation which was inherited from another class or interface is not shown here.
Note that an HTML error in the new documentation may cause the display of other documentation changes to be presented incorrectly. For instance, failure to close a <code> tag will cause all subsequent paragraphs to be displayed differently.

Class CookieGenerator, void setCookieDomain(String)

Use the given domain for cookies created by this generator. The cookie is only visible to servers in this domain. @see javax.servlet.http.Cookie#setDomain
Class CookieGenerator, void setCookieMaxAge(Integer)

Use the given maximum age (in seconds) for cookies created by this generator. Useful special value: -1 ... not persistent, deleted when client shuts downdown @see javax.servlet.http.Cookie#setMaxAge
Class CookieGenerator, void setCookieName(String)

Use the given name for cookies created by this generator. @see javax.servlet.http.Cookie#getName()
Class CookieGenerator, void setCookiePath(String)

Use the given path for cookies created by this generator. The cookie is only visible to URLs in this path and below. @see javax.servlet.http.Cookie#setPath
Class CookieGenerator, void setCookieSecure(boolean)

Set whether the cookie should only be sent using a secure protocol, such as HTTPS (SSL). This is an indication to the receiving browser, not processed by the HTTP server itself. Default is "false". @see javax.servlet.http.Cookie#setSecure

Class UriComponents

Represents an immutable collection of URI components, mapping component type to stringstring values. Contains convenience convenience getters for all components. Effectively similar to java.net.URI, but with more powerful encoding options and support support for URI templatetemplate variables. @author Arjen Poutsma @since 3.1 @see UriComponentsBuilder
Class UriComponents, UriComponents encode()

EncodesEncode all URI components using their specific encoding rules, and returns the resultresult as a new new {@code UriComponents} instance. This method uses UTF-8 to encode. @return the encoded uri components
Class UriComponents, UriComponents encode(String)

EncodesEncode all URI components using their specific encoding rules, andand returns the result as a new new {@code UriComponents} instance. @param encoding the encoding of the values contained in this map @return the encoded uri components @throws UnsupportedEncodingException if the given encoding is not supported
Class UriComponents, UriComponents expand(Map<String, ?>)

Replaces all URI template variables with the values from a given map. The map keys represent keys represent variable names; the values variable values. The order of variables is notnot significant. @param uriVariables the map of URI variables @return the expanded uri components
Class UriComponents, UriComponents expand(Object[])

Replaces all URI template variables with the values from a given array. The arrayarray represent variable values. The order of variables is significant. @param uriVariableValues URI variable values @return the expanded uri components
Class UriComponents, String getFragment()

Returns the fragment. @return the fragment. Can be {@code null}.
Class UriComponents, String getHost()

Returns the host. @return the host. Can be {@code null}.
Class UriComponents, String getPath()

Returns the path. @return the path. Can be {@code null}.
Class UriComponents, List<String> getPathSegments()

Returns the list of path segments. @return the path segments. Empty if no path has been set.
Class UriComponents, int getPort()

Returns the port. Returns {@code -1} if no port has been set. @return the port
Class UriComponents, String getQuery()

Returns the query. @return the query. Can be {@code null}.
Class UriComponents, MultiValueMap<String, String> getQueryParams()

Returns the map of query parameters. @return the query parameters. Empty if no query has been set.
Class UriComponents, String getScheme()

Returns the scheme. @return the scheme. Can be {@code null}.
Class UriComponents, String getUserInfo()

Returns the user info. @return the user info. Can be {@code null}.
Class UriComponents, UriComponents normalize()

Normalize the path removing sequences like "path/..". @see org.springframework.util.StringUtils#cleanPath(String)
Class UriComponents, URI toUri()

Returns a {@code URI} from this {@code UriComponents} instance. @return the URI
Class UriComponents, String toUriString()

Returns a URI string from this {@code UriComponents} instance. @return the URI string

Class UriComponentsBuilder

Builder for UriComponents.

Typical usage involves:
  1. Create a {@code UriComponentsBuilder} with one of the static factory methods (such as .fromPath(String) or .fromUri(URI))
  2. Set the various URI components through the respective methods (.scheme(String), .userInfo(String), .host(String), .port(int), .path(String), .pathSegment(String...), .queryParam(String, Object...), and .fragment(String).
  3. Build the UriComponents instance with the .build() method.
@author Arjen Poutsma @author Rossen Stoyanchev @since 3.1 @see #newInstance() @see #fromPath(String) @see #fromUri(URI) @since 3.1
Class UriComponentsBuilder, UriComponentsBuilder host(String)

Sets the URI host. The given host may contain URI template variables, and may also be {@code null} to clear the host of this builder. @param host host the URI host @return this UriComponentsBuilder
Class UriComponentsBuilder, UriComponentsBuilder path(String)

Appends the given path to the existing path of this builder. The given path may contain URI template variables. @param path path the URI path @return this UriComponentsBuilder
Class UriComponentsBuilder, UriComponentsBuilder userInfo(String)

Sets the URI user info. The given user info may contain URI template variables, and may also be {@code null} to clear the user info of this builder. @param userInfo userInfo the URI user info @return this UriComponentsBuilder

Class UriUtils

Utility class for URI encoding and decoding based on RFC 3986. Offers encoding methods for the various URI components.

All {@code encode*(String, String} methods in this class operate in a similar way:

@author Arjen Poutsma @since 3.0 @see RFC 3986
Class UriUtils, String decode(String, String)

Decodes the given encoded source String into an URI. Based on the following rules: @param source the source string @param encoding the encoding @return the decoded URI @throws IllegalArgumentException when the given source contains invalid encoded sequences @throws UnsupportedEncodingException when the given encoding parameter is not supported @see java.net.URLDecoder#decode(String, String)
Class UriUtils, String encodeHttpUrl(String, String)

Encodes the given HTTP URI into an encoded String. All various URI components are encoded according to their respective valid character sets.

Note that this method does not support fragments ({@code #}), as these are not supposed to be sent to the server, but retained by the client.

Note that this method does not attempt to encode "=" and "&" characters in query parameter names and query parameter values because they cannot be parsed in a reliable way. Instead use:

  UriComponents uriComponents = UriComponentsBuilder.fromHttpUrl("/path?name={value}").buildAndExpand("a=b");
  String encodedUri = uriComponents.encode().toUriString();
 
@param httpUrl the HTTP URL to be encoded @param encoding the character encoding to encode to @return the encoded URL @throws IllegalArgumentException when the given uri parameter is not a valid URI @throws UnsupportedEncodingException when the given encoding parameter is not supported @deprecated in favor of UriComponentsBuilder; see note about query param encoding
Class UriUtils, String encodeUri(String, String)

Encodes the given source URI into an encoded String. All various URI components are encoded according to their respective valid character sets.

Note that this method does not attempt to encode "=" and "&" characters in query parameter names and query parameter values because they cannot be parsed in a reliable way. Instead use:

  UriComponents uriComponents = UriComponentsBuilder.fromUri("/path?name={value}").buildAndExpand("a=b");
  String encodedUri = uriComponents.encode().toUriString();
 
@param uri the URI to be encoded @param encoding the character encoding to encode to @return the encoded URI @throws IllegalArgumentException when the given uri parameter is not a valid URI @throws UnsupportedEncodingException when the given encoding parameter is not supported @deprecated in favor of UriComponentsBuilder; see note about query param encoding