Class HttpClientConfiguration
- java.lang.Object
-
- org.mule.weave.v2.module.http.service.HttpClientConfiguration
-
public class HttpClientConfiguration extends java.lang.ObjectConfiguration component that specifies how anHttpClientshould be created. Instances can only be obtained through anHttpClientConfiguration.Builder.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHttpClientConfiguration.BuilderBuilder ofHttpClientConfigurations.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)intgetConnectionTimeout()TlsConfigurationgetTlsConfiguration()inthashCode()booleanisCompressionHeader()Is HTTP `Accept-Encoding` HTTP header enforced.booleanisDecompress()Defines whether responses should be decompressed automatically.
-
-
-
Method Detail
-
getConnectionTimeout
public int getConnectionTimeout()
- Returns:
- the maximum time in millisecond an
HttpClientcan wait when connecting to a remote host.
-
isCompressionHeader
public boolean isCompressionHeader()
Is HTTP `Accept-Encoding` HTTP header enforced.- Returns:
trueif 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:
trueif responses should be decompressed automatically
-
getTlsConfiguration
public TlsConfiguration getTlsConfiguration()
- Returns:
- The TLS related data.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-