Class SimpleHttpComponents5MessageSender

All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean, WebServiceMessageSender

public class SimpleHttpComponents5MessageSender extends AbstractHttpComponents5MessageSender
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:
  • Constructor Details

    • SimpleHttpComponents5MessageSender

      public SimpleHttpComponents5MessageSender(org.apache.hc.client5.http.classic.HttpClient httpClient)
      Creates an instance with the given HttpClient.
      Parameters:
      httpClient - the http client to use
    • SimpleHttpComponents5MessageSender

      public SimpleHttpComponents5MessageSender(HttpComponents5ClientFactory factory)
      Create a new instance with the state of the given HttpComponents5ClientFactory.
      Parameters:
      factory - the factory to use
  • Method Details