org.springframework.boot.webservices.client

Class HttpWebServiceMessageSenderBuilder

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


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

      • HttpWebServiceMessageSenderBuilder

        public HttpWebServiceMessageSenderBuilder()
    • Method Detail

      • setConnectTimeout

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

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

        public HttpWebServiceMessageSenderBuilder requestFactory(java.util.function.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
      • build

        public org.springframework.ws.transport.WebServiceMessageSender build()