Class HttpServiceProxyFactory.Builder
java.lang.Object
org.springframework.web.service.invoker.HttpServiceProxyFactory.Builder
- Enclosing class:
- HttpServiceProxyFactory
Builder to create an 
HttpServiceProxyFactory.- Since:
- 6.0
- Author:
- Rossen Stoyanchev
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Build theHttpServiceProxyFactoryinstance.conversionService(ConversionService conversionService) Set theConversionServiceto use where input values need to be formatted as Strings.Register a custom argument resolver, invoked ahead of default resolvers.embeddedValueResolver(StringValueResolver embeddedValueResolver) Set theStringValueResolverto use for resolving placeholders and expressions embedded inHttpExchange.url().exchangeAdapter(HttpExchangeAdapter adapter) Provide the HTTP client to perform requests through.Provide a function to wrap the configuredHttpExchangeAdapter.Register anHttpRequestValuesprocessor that can further customize request values based on the method and all arguments.
- 
Method Details- 
exchangeAdapterProvide the HTTP client to perform requests through.- Parameters:
- adapter- a client adapted to- HttpExchangeAdapter
- Returns:
- this same builder instance
- Since:
- 6.1
 
- 
exchangeAdapterDecoratorpublic HttpServiceProxyFactory.Builder exchangeAdapterDecorator(Function<HttpExchangeAdapter, HttpExchangeAdapter> decorator) Provide a function to wrap the configuredHttpExchangeAdapter.- Parameters:
- decorator- a client adapted to- HttpExchangeAdapter
- Returns:
- this same builder instance
- Since:
- 7.0
 
- 
customArgumentResolverRegister a custom argument resolver, invoked ahead of default resolvers.- Parameters:
- resolver- the resolver to add
- Returns:
- this same builder instance
 
- 
conversionServiceSet theConversionServiceto use where input values need to be formatted as Strings.By default, this is DefaultFormattingConversionService.- Returns:
- this same builder instance
 
- 
httpRequestValuesProcessorpublic HttpServiceProxyFactory.Builder httpRequestValuesProcessor(HttpRequestValues.Processor processor) Register anHttpRequestValuesprocessor that can further customize request values based on the method and all arguments.- Parameters:
- processor- the processor to add
- Returns:
- this same builder instance
- Since:
- 7.0
 
- 
embeddedValueResolverpublic HttpServiceProxyFactory.Builder embeddedValueResolver(StringValueResolver embeddedValueResolver) Set theStringValueResolverto use for resolving placeholders and expressions embedded inHttpExchange.url().- Parameters:
- embeddedValueResolver- the resolver to use
- Returns:
- this same builder instance
 
- 
buildBuild theHttpServiceProxyFactoryinstance.
 
-