|
Generated by JDiff |
||||||||
PREV PACKAGE NEXT PACKAGE FRAMES NO FRAMES |
This file contains all the changes in documentation in the packageorg.springframework.web.util
as colored differences. Deletions are shownlike 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.
Builds a {@code UriComponents} instance from the variousClass UriComponentsBuilder, UriComponents buildAndExpand(Map<String, ?>)componentscomponents contained in this builder. @param encoded whether all the components set in this builderareareencodedencoded ({@code true}) or not ({@code false}). @return the URI components
Builds a {@code UriComponents} instance and replaces URI templateClass UriComponentsBuilder, UriComponents buildAndExpand(Object[])variablesvariables with the values from a map. This is a shortcut method, whichcombinescombines calls to .build() and then UriComponents.expand(Map).@param uriVariables the map of URI variables @return the URI components with expanded values
Builds a {@code UriComponents} instance and replaces URI templateClass UriComponentsBuilder, UriComponentsBuilder fragment(String)variablesvariableswith the values from an array. This is a shortcut method, whichcombinescombines calls to .build() and then UriComponents.expand(Object...).@param uriVariableValues URI variable values @return the URI components with expanded values
Sets the URI fragment. The given fragment may contain URIClass UriComponentsBuilder, UriComponentsBuilder fromHttpUrl(String)templatetemplate variables, and may also be {@code null} toclearclear the fragment ofthisthis builder. @paramfragmentfragment the URI fragment @return this UriComponentsBuilder
Creates a new {@code UriComponents} object from the string HTTP URL.Class UriComponentsBuilder, UriComponentsBuilder fromUriString(String)Note: The presence of reserved characters can prevent correct parsing of the URI string. For example if a query parameter contains {@code '='} or {@code '&'} characters, the query string cannot be parsed unambiguously. Such values should be substituted for URI variables to enable correct parsing:
String uriString = "/hotels/42?filter={value}"; UriComponentsBuilder.fromUriString(uriString).buildAndExpand("hot&cold");@param httpUrl the source URI @return the URI components of the URI
Returns a builder that is initialized with the given URI string.Class UriComponentsBuilder, UriComponentsBuilder host(String)Note: The presence of reserved characters can prevent correct parsing of the URI string. For example if a query parameter contains {@code '='} or {@code '&'} characters, the query string cannot be parsed unambiguously. Such values should be substituted for URI variables to enable correct parsing:
String uriString = "/hotels/42?filter={value}"; UriComponentsBuilder.fromUriString(uriString).buildAndExpand("hot&cold");@paramuriuri the URI string to initialize with @return the new {@code UriComponentsBuilder}
Sets the URI host. The given host may contain URI template variables,Class UriComponentsBuilder, UriComponentsBuilder path(String)andand may also be {@code null} to clear thehosthost of this builder. @paramhosthost the URI host @return this UriComponentsBuilder
Appends the given path to the existing path of this builder. TheClass UriComponentsBuilder, UriComponentsBuilder query(String)givengiven path may contain URI template variables. @parampathpath the URI path @return this UriComponentsBuilder
Appends the given query to the existing query of this builder. The given query may contain URI template variables.Class UriComponentsBuilder, UriComponentsBuilder queryParam(String, Object[])Note: The presence of reserved characters can prevent correct parsing of the URI string. For example if a query parameter contains {@code '='} or {@code '&'} characters, the query string cannot be parsed unambiguously. Such values should be substituted for URI variables to enable correct parsing:
String uriString = "/hotels/42?filter={value}"; UriComponentsBuilder.fromUriString(uriString).buildAndExpand("hot&cold");@param query the query string @return this UriComponentsBuilder
Appends the given query parameter to the existing query parameters.Class UriComponentsBuilder, UriComponentsBuilder replacePath(String)TheThe given name or any of the values maycontaincontain URI template variables. Ifnono values are given, the resulting URI will contain the query parameternamename only (i.e.{@code ?foo} instead of {@code ?foo=bar}. @paramnamename the query parameter name @paramvaluesvalues the query parameter values @return this UriComponentsBuilder
Sets the path of this builder overriding all existing path and path segment values.Class UriComponentsBuilder, UriComponentsBuilder replaceQuery(String)@param path the URI path; a {@code null} value results in an empty path. @return this UriComponentsBuilder
Sets the query of this builder overriding all existing query parameters.Class UriComponentsBuilder, UriComponentsBuilder replaceQueryParam(String, Object[])@param query the query string; a {@code null} value removes all query parameters. @return this UriComponentsBuilder
Sets the query parameter values overriding all existing query valuesClass UriComponentsBuilder, UriComponentsBuilder scheme(String)forfor the same parameter.If no values are given, the query parameterisis removed.@paramnamename the query parameter name @paramvaluesvalues the query parameter values @return this UriComponentsBuilder
Sets the URI scheme. The given scheme may contain URI template variables, and may also be {@code null} to clearClass UriComponentsBuilder, UriComponentsBuilder userInfo(String)thethe scheme of this builder. @paramschemescheme the URI scheme @return this UriComponentsBuilder
Sets the URI user info. The given user info may contain URItemplatetemplate variables, and may also be {@code null}toto clear the user info ofthisthis builder. @paramuserInfouserInfo the URI user info @return this UriComponentsBuilder
Encodes the given HTTP URI into an encoded String. All various URI components are encoded according to their respective valid character sets.Class UriUtils, String encodeUri(String, String)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 notsupportedsupported @deprecated in favor of UriComponentsBuilder; see note about query param encoding
Encodes the given source URI into an encoded String. All various URI components are encoded according to their respective valid character sets.Class UriUtils, String encodeUriComponents(String, String, String, String, String, String, String, String, String)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 notsupportedsupported @deprecated in favor of UriComponentsBuilder; see note about query param encoding
Encodes the given source URI components into an encoded String. All various URI components are optional, but encoded according to their respective valid character sets. @param scheme the scheme @param authority the authority @param userInfo the user info @param host the host @param port the port @param path the path @param query the query @param fragment the fragment @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 notsupportedsupported @deprecated in favor of UriComponentsBuilder
Helper class for URL path matching. Provides support for URL paths in RequestDispatcher includes and support for consistent URL decoding.Used by org.springframework.web.servlet.handler.AbstractUrlHandlerMapping, org.springframework.web.servlet.mvc.multiaction.AbstractUrlMethodNameResolver and org.springframework.web.servlet.support.RequestContext for path matching and/or URI determination. @author Juergen Hoeller @author Rob Harrop @author Rossen Stoyanchev @since 14.01.2004