Class HttpClientConfiguration


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

      • 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​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object