Uses of Class
org.springframework.web.util.UriComponentsBuilder
Packages that use UriComponentsBuilder
Package
Description
Support classes for annotation-based handler method processing.
Generic support classes for handler method processing.
Miscellaneous web utility classes, such as HTML escaping and cookie handling.
-
Uses of UriComponentsBuilder in org.springframework.web.method.annotation
Methods in org.springframework.web.method.annotation with parameters of type UriComponentsBuilderModifier and TypeMethodDescriptionvoid
RequestParamMethodArgumentResolver.contributeMethodArgument
(org.springframework.core.MethodParameter parameter, Object value, UriComponentsBuilder builder, Map<String, Object> uriVariables, org.springframework.core.convert.ConversionService conversionService) -
Uses of UriComponentsBuilder in org.springframework.web.method.support
Methods in org.springframework.web.method.support with parameters of type UriComponentsBuilderModifier and TypeMethodDescriptionvoid
CompositeUriComponentsContributor.contributeMethodArgument
(org.springframework.core.MethodParameter parameter, Object value, UriComponentsBuilder builder, Map<String, Object> uriVariables) An overloaded method that uses the ConversionService created at construction.void
CompositeUriComponentsContributor.contributeMethodArgument
(org.springframework.core.MethodParameter parameter, Object value, UriComponentsBuilder builder, Map<String, Object> uriVariables, org.springframework.core.convert.ConversionService conversionService) void
UriComponentsContributor.contributeMethodArgument
(org.springframework.core.MethodParameter parameter, Object value, UriComponentsBuilder builder, Map<String, Object> uriVariables, org.springframework.core.convert.ConversionService conversionService) Process the given method argument and either update theUriComponentsBuilder
or add to the map with URI variables to use to expand the URI after all arguments are processed. -
Uses of UriComponentsBuilder in org.springframework.web.util
Methods in org.springframework.web.util that return UriComponentsBuilderModifier and TypeMethodDescriptionstatic UriComponentsBuilder
ForwardedHeaderUtils.adaptFromForwardedHeaders
(URI uri, HttpHeaders headers) UriComponentsBuilder.cloneBuilder()
Clone thisUriComponentsBuilder
.final UriComponentsBuilder
UriComponentsBuilder.encode()
Request to have the URI template pre-encoded at build time, and URI variables encoded separately when expanded.A variant ofencode()
with a charset other than "UTF-8".static UriComponentsBuilder
UriComponentsBuilder.fromHttpRequest
(HttpRequest request) Deprecated, for removal: This API element is subject to removal in a future version.static UriComponentsBuilder
UriComponentsBuilder.fromHttpUrl
(String httpUrl) Create a URI components builder from the given HTTP URL String.static UriComponentsBuilder
UriComponentsBuilder.fromOriginHeader
(String origin) Create an instance by parsing the "Origin" header of an HTTP request.static UriComponentsBuilder
Create a builder that is initialized with the given path.static UriComponentsBuilder
Create a builder that is initialized from the givenURI
.static UriComponentsBuilder
UriComponentsBuilder.fromUriString
(String uri) Create a builder that is initialized with the given URI string.static UriComponentsBuilder
UriComponentsBuilder.newInstance()
Create a new, empty builder.UriComponentsBuilder.pathSegment
(String... pathSegments) UriComponentsBuilder.port
(int port) UriComponentsBuilder.queryParam
(String name, Object... values) UriComponentsBuilder.queryParam
(String name, Collection<?> values) UriComponentsBuilder.queryParamIfPresent
(String name, Optional<?> value) UriComponentsBuilder.queryParams
(org.springframework.util.MultiValueMap<String, String> params) Add multiple query parameters and values.UriComponentsBuilder.replacePath
(String path) UriComponentsBuilder.replaceQuery
(String query) UriComponentsBuilder.replaceQueryParam
(String name, Object... values) UriComponentsBuilder.replaceQueryParam
(String name, Collection<?> values) UriComponentsBuilder.replaceQueryParams
(org.springframework.util.MultiValueMap<String, String> params) Set the query parameter values after removing all existing ones.UriComponentsBuilder.schemeSpecificPart
(String ssp) Set the URI scheme-specific-part.Initialize components of this builder from components of the given URI.UriComponentsBuilder.uriComponents
(UriComponents uriComponents) Set or append individual URI components of this builder from the values of the givenUriComponents
instance.UriComponentsBuilder.uriVariables
(Map<String, Object> uriVariables) Configure URI variables to be expanded at build time.Methods in org.springframework.web.util with parameters of type UriComponentsBuilderModifier and TypeMethodDescriptionprotected abstract void
UriComponents.copyToUriComponentsBuilder
(UriComponentsBuilder builder) Set all components of the given UriComponentsBuilder.Constructors in org.springframework.web.util with parameters of type UriComponentsBuilderModifierConstructorDescriptionVariant ofDefaultUriBuilderFactory(String)
with aUriComponentsBuilder
.protected
Create a deep copy of the given UriComponentsBuilder.
ForwardedHeaderUtils.adaptFromForwardedHeaders(java.net.URI, org.springframework.http.HttpHeaders)
; to be removed in 6.2