org.springframework.boot.webservices.client

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
    Author:
    Stephane Nicoll
    • Constructor Detail

      • HttpWebServiceMessageSenderBuilder

        public HttpWebServiceMessageSenderBuilder()
    • Method Detail

      • setConnectTimeout

        public HttpWebServiceMessageSenderBuilder setConnectTimeout(Duration connectTimeout)
        Set the connection timeout.
        Parameters:
        connectTimeout - the connection timeout
        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
      • build

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

Copyright © 2019 Pivotal Software, Inc.. All rights reserved.