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
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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
Returns the value of theredirects
record component.- Returns:
- the value of the
redirects
record component
-
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
Returns the value of thesslBundle
record component.- Returns:
- the value of the
sslBundle
record component
-