Class HttpServiceProxyFactory.Builder
java.lang.Object
org.springframework.web.service.invoker.HttpServiceProxyFactory.Builder
- Enclosing class:
- HttpServiceProxyFactory
Builder to create an
HttpServiceProxyFactory
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build theHttpServiceProxyFactory
instance.conversionService
(ConversionService conversionService) Set theConversionService
to use where input values need to be formatted as Strings.Register a custom argument resolver, invoked ahead of default resolvers.embeddedValueResolver
(StringValueResolver embeddedValueResolver) Set theStringValueResolver
to use for resolving placeholders and expressions embedded inHttpExchange.url()
.exchangeAdapter
(HttpExchangeAdapter adapter) Provide the HTTP client to perform requests through.
-
Method Details
-
exchangeAdapter
Provide the HTTP client to perform requests through.- Parameters:
adapter
- a client adapted toHttpExchangeAdapter
- Returns:
- this same builder instance
- Since:
- 6.1
-
customArgumentResolver
Register a custom argument resolver, invoked ahead of default resolvers.- Parameters:
resolver
- the resolver to add- Returns:
- this same builder instance
-
conversionService
Set theConversionService
to use where input values need to be formatted as Strings.By default this is
DefaultFormattingConversionService
.- Returns:
- this same builder instance
-
embeddedValueResolver
public HttpServiceProxyFactory.Builder embeddedValueResolver(StringValueResolver embeddedValueResolver) Set theStringValueResolver
to use for resolving placeholders and expressions embedded inHttpExchange.url()
.- Parameters:
embeddedValueResolver
- the resolver to use- Returns:
- this same builder instance
-
build
Build theHttpServiceProxyFactory
instance.
-