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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.ws.transport.WebServiceMessageSender
build()
Build theWebServiceMessageSender
instance.requestFactory
(Function<ClientHttpRequestFactorySettings, org.springframework.http.client.ClientHttpRequestFactory> requestFactoryFunction) Set theFunction
ofClientHttpRequestFactorySettings
toClientHttpRequestFactory
that should be called to create the HTTP-basedWebServiceMessageSender
.requestFactory
(Supplier<org.springframework.http.client.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:
- the current builder instance
-
setReadTimeout
Set the read timeout.- Parameters:
readTimeout
- the read timeout- Returns:
- the current builder instance
-
sslBundle
Set anSslBundle
that will be used to configure a secure connection.- Parameters:
sslBundle
- the SSL bundle- Returns:
- the current builder instance
-
requestFactory
public HttpWebServiceMessageSenderBuilder requestFactory(Supplier<org.springframework.http.client.ClientHttpRequestFactory> requestFactorySupplier) Set theSupplier
ofClientHttpRequestFactory
that should be called to create the HTTP-basedWebServiceMessageSender
.- Parameters:
requestFactorySupplier
- the supplier for the request factory- Returns:
- the current builder instance
-
requestFactory
public HttpWebServiceMessageSenderBuilder requestFactory(Function<ClientHttpRequestFactorySettings, org.springframework.http.client.ClientHttpRequestFactory> requestFactoryFunction) Set theFunction
ofClientHttpRequestFactorySettings
toClientHttpRequestFactory
that should be called to create the HTTP-basedWebServiceMessageSender
.- Parameters:
requestFactoryFunction
- the function for the request factory- Returns:
- the current builder instance
- Since:
- 3.0.0
-
build
public org.springframework.ws.transport.WebServiceMessageSender build()Build theWebServiceMessageSender
instance.- Returns:
- the
WebServiceMessageSender
instance
-