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 aHttpClientSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconnectTimeoutrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thereadTimeoutrecord component.Returns the value of theredirectsrecord component.Returns the value of thesslBundlerecord component.final StringtoString()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 aHttpClientSettingsrecord class.- Parameters:
redirects- the value for theredirectsrecord componentconnectTimeout- the value for theconnectTimeoutrecord componentreadTimeout- the value for thereadTimeoutrecord componentsslBundle- the value for thesslBundlerecord 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 theredirectsrecord component.- Returns:
- the value of the
redirectsrecord component
-
connectTimeout
Returns the value of theconnectTimeoutrecord component.- Returns:
- the value of the
connectTimeoutrecord component
-
readTimeout
Returns the value of thereadTimeoutrecord component.- Returns:
- the value of the
readTimeoutrecord component
-
sslBundle
Returns the value of thesslBundlerecord component.- Returns:
- the value of the
sslBundlerecord component
-