Top Description Constructors Methods
org.springframework.web.service.invoker

public Class UriBuilderFactoryArgumentResolver

extends Object
implements HttpServiceArgumentResolver
Class Inheritance
All Implemented Interfaces
org.springframework.web.service.invoker.HttpServiceArgumentResolver
Imports
java.net.URL, org.springframework.core.MethodParameter, org.springframework.lang.Nullable, org.springframework.web.util.UriBuilderFactory, .UriTemplate

An HttpServiceArgumentResolver that uses the provided UriBuilderFactory to expand the UriTemplate.

Unlike with the UrlArgumentResolver, if the UriBuilderFactoryArgumentResolver is provided, it will not override the entire URL, but just the baseUri.

This allows for dynamically setting the baseUri, while keeping the path specified through class and method annotations.

Author
Olga Maciaszek-Sharma
Since
6.1

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
resolve(Object
the argument value
argument
,
MethodParameter
the method parameter for the argument
parameter
,
HttpRequestValues.Builder
builder to add HTTP request values to
requestValues
)

Implements org.springframework.web.service.invoker.HttpServiceArgumentResolver.resolve.

Resolve the argument value.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

UriBuilderFactoryArgumentResolverback to summary
public UriBuilderFactoryArgumentResolver()

Method Detail

resolveback to summary
public boolean resolve(Object argument, MethodParameter parameter, HttpRequestValues.Builder requestValues)

Implements org.springframework.web.service.invoker.HttpServiceArgumentResolver.resolve.

Doc from org.springframework.web.service.invoker.HttpServiceArgumentResolver.resolve.

Resolve the argument value.

Parameters
argument:Object

the argument value

parameter:MethodParameter

the method parameter for the argument

requestValues:HttpRequestValues.Builder

builder to add HTTP request values to

Returns:boolean

true if the argument was resolved, false otherwise

Annotations
@Override