Class HttpServiceProxyFactory.Builder
java.lang.Object
org.springframework.web.service.invoker.HttpServiceProxyFactory.Builder
- Enclosing class:
- HttpServiceProxyFactory
Builder for
HttpServiceProxyFactory
.-
Method Summary
Modifier and TypeMethodDescriptionaddCustomResolver
(HttpServiceArgumentResolver resolver) Register a custom argument resolver.build()
Build and return theHttpServiceProxyFactory
instance.setBlockTimeout
(Duration blockTimeout) Configure how long to wait for a response for an HTTP service method with a synchronous (blocking) method signature.setConversionService
(ConversionService conversionService) Set theConversionService
to use where input values need to be formatted as Strings.Set theReactiveAdapterRegistry
to use to support different asynchronous types for HTTP service method return values.
-
Method Details
-
addCustomResolver
Register a custom argument resolver. This will be inserted ahead of default resolvers.- Returns:
- the same builder instance
-
setConversionService
Set theConversionService
to use where input values need to be formatted as Strings.By default this is
DefaultFormattingConversionService
.- Returns:
- the same builder instance
-
setReactiveAdapterRegistry
Set theReactiveAdapterRegistry
to use to support different asynchronous types for HTTP service method return values.By default this is
ReactiveAdapterRegistry.getSharedInstance()
.- Returns:
- the same builder instance
-
setBlockTimeout
Configure how long to wait for a response for an HTTP service method with a synchronous (blocking) method signature.By default this is 5 seconds.
- Parameters:
blockTimeout
- the timeout value- Returns:
- the same builder instance
-
build
Build and return theHttpServiceProxyFactory
instance.
-