Class HttpServiceProxyFactory.Builder

java.lang.Object
org.springframework.web.service.invoker.HttpServiceProxyFactory.Builder
Enclosing class:
HttpServiceProxyFactory

public static final class HttpServiceProxyFactory.Builder extends Object
Builder to create an HttpServiceProxyFactory.
  • Method Details

    • clientAdapter

      public HttpServiceProxyFactory.Builder clientAdapter(HttpClientAdapter clientAdapter)
      Provide the HTTP client to perform requests through.
      Parameters:
      clientAdapter - a client adapted to HttpClientAdapter
      Returns:
      this same builder instance
    • customArgumentResolver

      public HttpServiceProxyFactory.Builder customArgumentResolver(HttpServiceArgumentResolver resolver)
      Register a custom argument resolver, invoked ahead of default resolvers.
      Parameters:
      resolver - the resolver to add
      Returns:
      this same builder instance
    • conversionService

      public HttpServiceProxyFactory.Builder conversionService(org.springframework.core.convert.ConversionService conversionService)
      Set the ConversionService 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(org.springframework.util.StringValueResolver embeddedValueResolver)
      Set the StringValueResolver to use for resolving placeholders and expressions embedded in HttpExchange.url().
      Parameters:
      embeddedValueResolver - the resolver to use
      Returns:
      this same builder instance
    • reactiveAdapterRegistry

      public HttpServiceProxyFactory.Builder reactiveAdapterRegistry(org.springframework.core.ReactiveAdapterRegistry registry)
      Set the ReactiveAdapterRegistry to use to support different asynchronous types for HTTP service method return values.

      By default this is ReactiveAdapterRegistry.getSharedInstance().

      Returns:
      this same builder instance
    • blockTimeout

      public HttpServiceProxyFactory.Builder blockTimeout(Duration blockTimeout)
      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:
      this same builder instance
    • build

      public HttpServiceProxyFactory build()
      Build the HttpServiceProxyFactory instance.