Record Class HttpClientSettings
java.lang.Object
java.lang.Record
org.springframework.boot.http.client.HttpClientSettings
- Record Components:
redirects
- the follow redirect strategy to use or null to redirect whenever the underlying library allows itconnectTimeout
- the connect timeoutreadTimeout
- the read timeoutsslBundle
- the SSL bundle providing SSL configuration
public record HttpClientSettings(HttpRedirects redirects, Duration connectTimeout, Duration readTimeout, SslBundle sslBundle)
extends Record
Settings that can be applied when creating a blocking or reactive HTTP client.
- Since:
- 3.5.0
- Author:
- Phillip Webb
-
Constructor Summary
ConstructorsConstructorDescriptionHttpClientSettings
(HttpRedirects redirects, Duration connectTimeout, Duration readTimeout, SslBundle sslBundle) Creates an instance of aHttpClientSettings
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconnectTimeout
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thereadTimeout
record component.Returns the value of theredirects
record component.Returns the value of thesslBundle
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
HttpClientSettings
public HttpClientSettings(HttpRedirects redirects, Duration connectTimeout, Duration readTimeout, SslBundle sslBundle) Creates an instance of aHttpClientSettings
record class.- Parameters:
redirects
- the value for theredirects
record componentconnectTimeout
- the value for theconnectTimeout
record componentreadTimeout
- the value for thereadTimeout
record componentsslBundle
- the value for thesslBundle
record component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
redirects
-
connectTimeout
Returns the value of theconnectTimeout
record component.- Returns:
- the value of the
connectTimeout
record component
-
readTimeout
Returns the value of thereadTimeout
record component.- Returns:
- the value of the
readTimeout
record component
-
sslBundle
-