Uses of Interface
org.springframework.web.util.UriBuilder
Packages that use UriBuilder
Package
Description
Core package of the client-side web support.
Miscellaneous web utility classes, such as HTML escaping and cookie handling.
-
Uses of UriBuilder in org.springframework.web.client
Method parameters in org.springframework.web.client with type arguments of type UriBuilderModifier and TypeMethodDescriptionRestClient.UriSpec.uri
(String uri, Function<UriBuilder, URI> uriFunction) Specify the URI starting with a URI template and finishing off with aUriBuilder
created from the template.RestClient.UriSpec.uri
(Function<UriBuilder, URI> uriFunction) Specify the URI by through aUriBuilder
. -
Uses of UriBuilder in org.springframework.web.util
Classes in org.springframework.web.util that implement UriBuilderMethods in org.springframework.web.util that return UriBuilderModifier and TypeMethodDescriptionDefaultUriBuilderFactory.builder()
UriBuilderFactory.builder()
Create a URI builder with default settings.Set the URI fragment.Set the URI host which may contain URI template variables, and may also benull
to clear the host of this builder.Append to the path of this builder.UriBuilder.pathSegment
(String... pathSegments) Append to the path using path segments.UriBuilder.port
(int port) Set the URI port.Set the URI port.Parse the given query string into query parameters where parameters are separated with'&'
and their values, if any, with'='
.UriBuilder.queryParam
(String name, Object... values) Append the given query parameter.UriBuilder.queryParam
(String name, Collection<?> values) Variant ofqueryParam(String, Object...)
with a Collection.UriBuilder.queryParamIfPresent
(String name, Optional<?> value) Delegates to eitherqueryParam(String, Object...)
orqueryParam(String, Collection)
if the givenOptional
has a value, or else if it is empty, no query parameter is added at all.UriBuilder.queryParams
(org.springframework.util.MultiValueMap<String, String> params) Add multiple query parameters and values.UriBuilder.replacePath
(String path) Override the current path.UriBuilder.replaceQuery
(String query) Clear existing query parameters and then delegate toquery(String)
.UriBuilder.replaceQueryParam
(String name, Object... values) Set the query parameter values replacing existing values, or if no values are given, the query parameter is removed.UriBuilder.replaceQueryParam
(String name, Collection<?> values) Variant ofreplaceQueryParam(String, Object...)
with a Collection.UriBuilder.replaceQueryParams
(org.springframework.util.MultiValueMap<String, String> params) Set the query parameter values after removing all existing ones.Set the URI scheme which may contain URI template variables, and may also benull
to clear the scheme of this builder.Initialize a builder with the given URI template.Set the URI user info which may contain URI template variables, and may also benull
to clear the user info of this builder.