Class HttpWebServiceMessageSenderBuilder

java.lang.Object
org.springframework.boot.webservices.client.HttpWebServiceMessageSenderBuilder

public class HttpWebServiceMessageSenderBuilder extends Object
WebServiceMessageSender builder that can detect a suitable HTTP library based on the classpath.
Since:
2.1.0
  • Constructor Details

    • HttpWebServiceMessageSenderBuilder

      public HttpWebServiceMessageSenderBuilder()
  • Method Details

    • setConnectTimeout

      public HttpWebServiceMessageSenderBuilder setConnectTimeout(Duration connectTimeout)
      Set the connection timeout.
      Parameters:
      connectTimeout - the connection timeout
      Returns:
      a new builder instance
    • setReadTimeout

      public HttpWebServiceMessageSenderBuilder setReadTimeout(Duration readTimeout)
      Set the read timeout.
      Parameters:
      readTimeout - the read timeout
      Returns:
      a new builder instance
    • sslBundle

      public HttpWebServiceMessageSenderBuilder sslBundle(SslBundle sslBundle)
      Set an SslBundle that will be used to configure a secure connection.
      Parameters:
      sslBundle - the SSL bundle
      Returns:
      a new builder instance
    • requestFactory

      public HttpWebServiceMessageSenderBuilder requestFactory(Supplier<org.springframework.http.client.ClientHttpRequestFactory> requestFactorySupplier)
      Set the Supplier of ClientHttpRequestFactory that should be called to create the HTTP-based WebServiceMessageSender.
      Parameters:
      requestFactorySupplier - the supplier for the request factory
      Returns:
      a new builder instance
    • requestFactory

      public HttpWebServiceMessageSenderBuilder requestFactory(Function<ClientHttpRequestFactorySettings,org.springframework.http.client.ClientHttpRequestFactory> requestFactoryFunction)
      Set the Function of ClientHttpRequestFactorySettings to ClientHttpRequestFactory that should be called to create the HTTP-based WebServiceMessageSender.
      Parameters:
      requestFactoryFunction - the function for the request factory
      Returns:
      a new builder instance
      Since:
      3.0.0
    • build

      public org.springframework.ws.transport.WebServiceMessageSender build()
      Build the WebServiceMessageSender instance.
      Returns:
      the WebServiceMessageSender instance