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 it
- connectTimeout- the connect timeout
- readTimeout- the read timeout
- sslBundle- 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
- 
Constructor SummaryConstructorsConstructorDescriptionHttpClientSettings(HttpRedirects redirects, Duration connectTimeout, Duration readTimeout, SslBundle sslBundle) Creates an instance of aHttpClientSettingsrecord class.
- 
Method SummaryModifier 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- 
HttpClientSettingspublic HttpClientSettings(HttpRedirects redirects, Duration connectTimeout, Duration readTimeout, SslBundle sslBundle) Creates an instance of aHttpClientSettingsrecord class.- Parameters:
- redirects- the value for the- redirectsrecord component
- connectTimeout- the value for the- connectTimeoutrecord component
- readTimeout- the value for the- readTimeoutrecord component
- sslBundle- the value for the- sslBundlerecord component
 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
redirectsReturns the value of theredirectsrecord component.- Returns:
- the value of the redirectsrecord component
 
- 
connectTimeoutReturns the value of theconnectTimeoutrecord component.- Returns:
- the value of the connectTimeoutrecord component
 
- 
readTimeoutReturns the value of thereadTimeoutrecord component.- Returns:
- the value of the readTimeoutrecord component
 
- 
sslBundleReturns the value of thesslBundlerecord component.- Returns:
- the value of the sslBundlerecord component
 
 
-