Class JdkHttpClientMessageSender
java.lang.Object
org.springframework.ws.transport.AbstractWebServiceMessageSender<HttpDestinationDescriptor>
org.springframework.ws.transport.http.AbstractHttpWebServiceMessageSender
org.springframework.ws.transport.http.JdkHttpClientMessageSender
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, WebServiceMessageSender
public class JdkHttpClientMessageSender
extends AbstractHttpWebServiceMessageSender
implements org.springframework.beans.factory.InitializingBean
WebServiceMessageSender implementation that uses the standard Java
HttpClient facilities to execute POST requests.
Can be used with a simple default configured HttpClient or can be constructed
with a pre-configured HttpClient.
- Since:
- 4.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface WebServiceMessageSender
WebServiceMessageSender.DestinationDescriptor, WebServiceMessageSender.DestinationPolicy<D>, WebServiceMessageSender.UriSource -
Field Summary
Fields inherited from class AbstractHttpWebServiceMessageSender
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateConnection(URI uri) Create a newWebServiceConnectionto the specified URI.voidsetConnectionTimeout(Duration connectionTimeout) voidsetHttpClient(@Nullable HttpClient httpClient) voidsetRequestTimeout(Duration requestTimeout) Methods inherited from class AbstractHttpWebServiceMessageSender
createDescriptor, defaultChecks, isAcceptGzipEncoding, remoteDefaultChecks, setAcceptGzipEncoding, setAllowDnsResolution, setAllowSiteLocalIpv4Methods inherited from class AbstractWebServiceMessageSender
getDestinationPolicy, setDestinationPolicy, supportsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface WebServiceMessageSender
supports
-
Constructor Details
-
JdkHttpClientMessageSender
public JdkHttpClientMessageSender() -
JdkHttpClientMessageSender
-
-
Method Details
-
setHttpClient
-
setConnectionTimeout
-
setRequestTimeout
-
createConnection
Description copied from interface:WebServiceMessageSenderCreate a newWebServiceConnectionto the specified URI.- Specified by:
createConnectionin interfaceWebServiceMessageSender- Parameters:
uri- the URI to open a connection to- Returns:
- the new connection
- Throws:
IOException- in case of I/O errors
-
afterPropertiesSet
-