Class HttpClientConfiguration

java.lang.Object
org.mule.weave.v2.module.http.service.HttpClientConfiguration

public class HttpClientConfiguration extends Object
Configuration component that specifies how an HttpClient should be created. Instances can only be obtained through an HttpClientConfiguration.Builder.
  • Method Details

    • getConnectionTimeout

      public int getConnectionTimeout()
      Returns:
      the maximum time in millisecond an HttpClient can wait when connecting to a remote host.
    • isCompressionHeader

      public boolean isCompressionHeader()
      Is HTTP `Accept-Encoding` HTTP header enforced.
      Returns:
      true if the `Accept-Encoding: gzip, deflate` HTTP header will be sent to each request.
    • isDecompress

      public boolean isDecompress()
      Defines whether responses should be decompressed automatically.
      Returns:
      true if responses should be decompressed automatically
    • getTlsConfiguration

      public TlsConfiguration getTlsConfiguration()
      Returns:
      The TLS related data.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object