Class HttpWebServiceMessageSenderBuilder
java.lang.Object
org.springframework.boot.webservices.client.HttpWebServiceMessageSenderBuilder
WebServiceMessageSender
builder that can detect a suitable HTTP library based
on the classpath.- Since:
- 2.1.0
- Author:
- Stephane Nicoll
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.ws.transport.WebServiceMessageSender
build()
Build theWebServiceMessageSender
instance.requestFactory
(Function<ClientHttpRequestFactorySettings, ClientHttpRequestFactory> requestFactoryFunction) Set theFunction
ofClientHttpRequestFactorySettings
toClientHttpRequestFactory
that should be called to create the HTTP-basedWebServiceMessageSender
.requestFactory
(Supplier<ClientHttpRequestFactory> requestFactorySupplier) Set theSupplier
ofClientHttpRequestFactory
that should be called to create the HTTP-basedWebServiceMessageSender
.setConnectTimeout
(Duration connectTimeout) Set the connection timeout.setReadTimeout
(Duration readTimeout) Set the read timeout.Set anSslBundle
that will be used to configure a secure connection.
-
Constructor Details
-
HttpWebServiceMessageSenderBuilder
public HttpWebServiceMessageSenderBuilder()
-
-
Method Details
-
setConnectTimeout
Set the connection timeout.- Parameters:
connectTimeout
- the connection timeout- Returns:
- a new builder instance
-
setReadTimeout
Set the read timeout.- Parameters:
readTimeout
- the read timeout- Returns:
- a new builder instance
-
sslBundle
Set anSslBundle
that will be used to configure a secure connection.- Parameters:
sslBundle
- the SSL bundle- Returns:
- a new builder instance
-
requestFactory
public HttpWebServiceMessageSenderBuilder requestFactory(Supplier<ClientHttpRequestFactory> requestFactorySupplier) Set theSupplier
ofClientHttpRequestFactory
that should be called to create the HTTP-basedWebServiceMessageSender
.- Parameters:
requestFactorySupplier
- the supplier for the request factory- Returns:
- a new builder instance
-
requestFactory
public HttpWebServiceMessageSenderBuilder requestFactory(Function<ClientHttpRequestFactorySettings, ClientHttpRequestFactory> requestFactoryFunction) Set theFunction
ofClientHttpRequestFactorySettings
toClientHttpRequestFactory
that should be called to create the HTTP-basedWebServiceMessageSender
.- 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 theWebServiceMessageSender
instance.- Returns:
- the
WebServiceMessageSender
instance
-