Class SimpleHttpComponents5MessageSender
java.lang.Object
org.springframework.ws.transport.AbstractWebServiceMessageSender<HttpDestinationDescriptor>
org.springframework.ws.transport.http.AbstractHttpWebServiceMessageSender
org.springframework.ws.transport.http.AbstractHttpComponents5MessageSender
org.springframework.ws.transport.http.SimpleHttpComponents5MessageSender
- All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean, WebServiceMessageSender
AbstractHttpComponents5MessageSender implementation that defines the underlying
Apache HttpClient that
executes POST requests.
The HttpClient can be provided as-is or configured via the convenient
HttpComponents5ClientFactory
For convenience method use to customize the underlying HttpClient, consider
using HttpComponents5MessageSender instead.
- Since:
- 4.1.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
ConstructorsConstructorDescriptionSimpleHttpComponents5MessageSender(org.apache.hc.client5.http.classic.HttpClient httpClient) Creates an instance with the givenHttpClient.Create a new instance with the state of the givenHttpComponents5ClientFactory. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hc.client5.http.classic.HttpClientReturn theHttpClientused by this message sender.Methods inherited from class AbstractHttpComponents5MessageSender
createConnection, createContext, destroyMethods 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
-
SimpleHttpComponents5MessageSender
public SimpleHttpComponents5MessageSender(org.apache.hc.client5.http.classic.HttpClient httpClient) Creates an instance with the givenHttpClient.- Parameters:
httpClient- the http client to use
-
SimpleHttpComponents5MessageSender
Create a new instance with the state of the givenHttpComponents5ClientFactory.- Parameters:
factory- the factory to use
-
-
Method Details
-
getHttpClient
public org.apache.hc.client5.http.classic.HttpClient getHttpClient()Description copied from class:AbstractHttpComponents5MessageSenderReturn theHttpClientused by this message sender.- Specified by:
getHttpClientin classAbstractHttpComponents5MessageSender
-