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 TypeMethodDescriptionblockTimeout(Duration blockTimeout) Deprecated, for removal: This API element is subject to removal in a future version.build()Build theHttpServiceProxyFactoryinstance.clientAdapter(HttpClientAdapter clientAdapter) Deprecated, for removal: This API element is subject to removal in a future version.in favor ofexchangeAdapter(HttpExchangeAdapter); to be removed in 6.2conversionService(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.Deprecated, for removal: This API element is subject to removal in a future version.in favor of setting the same directly on theHttpExchangeAdapter
-
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
-
clientAdapter
@Deprecated(since="6.1", forRemoval=true) public HttpServiceProxyFactory.Builder clientAdapter(HttpClientAdapter clientAdapter) Deprecated, for removal: This API element is subject to removal in a future version.in favor ofexchangeAdapter(HttpExchangeAdapter); to be removed in 6.2Provide the HTTP client to perform requests through.- Parameters:
clientAdapter- a client adapted toHttpClientAdapter- Returns:
- this same builder instance
-
customArgumentResolver
Register a custom argument resolver, invoked ahead of default resolvers.- Parameters:
resolver- the resolver to add- Returns:
- this same builder instance
-
conversionService
Set theConversionServiceto 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 theStringValueResolverto use for resolving placeholders and expressions embedded inHttpExchange.url().- Parameters:
embeddedValueResolver- the resolver to use- Returns:
- this same builder instance
-
reactiveAdapterRegistry
@Deprecated(since="6.1", forRemoval=true) public HttpServiceProxyFactory.Builder reactiveAdapterRegistry(ReactiveAdapterRegistry registry) Deprecated, for removal: This API element is subject to removal in a future version.in favor of setting the same directly on theHttpExchangeAdapterSet theReactiveAdapterRegistryto use to support different asynchronous types for HTTP service method return values.By default this is
ReactiveAdapterRegistry.getSharedInstance().- Returns:
- this same builder instance
-
blockTimeout
@Deprecated(since="6.1", forRemoval=true) public HttpServiceProxyFactory.Builder blockTimeout(@Nullable Duration blockTimeout) Deprecated, for removal: This API element is subject to removal in a future version.in favor of setting the same directly on theHttpExchangeAdapterConfigure how long to block for the response of an HTTP service method with a synchronous (blocking) method signature.By default this is not set, in which case the behavior depends on connection and request timeout settings of the underlying HTTP client. We recommend configuring timeout values directly on the underlying HTTP client, which provides more control over such settings.
- Parameters:
blockTimeout- the timeout value- Returns:
- this same builder instance
-
build
Build theHttpServiceProxyFactoryinstance.
-
HttpExchangeAdapter