Record Class ClientHttpRequestFactorySettings

java.lang.Object
java.lang.Record
org.springframework.boot.web.client.ClientHttpRequestFactorySettings
Record Components:
connectTimeout - the connect timeout
readTimeout - the read timeout
sslBundle - the SSL bundle providing SSL configuration

@Deprecated(since="3.4.0", forRemoval=true) public record ClientHttpRequestFactorySettings(Duration connectTimeout, Duration readTimeout, SslBundle sslBundle) extends Record
Deprecated, for removal: This API element is subject to removal in a future version.
since 3.4.0 for removal in 3.6.0 in favor of ClientHttpRequestFactorySettings
Settings that can be applied when creating a ClientHttpRequestFactory.
Since:
3.0.0
Author:
Andy Wilkinson, Phillip Webb, Scott Frederick
See Also:
  • Field Details

  • Constructor Details

    • ClientHttpRequestFactorySettings

      public ClientHttpRequestFactorySettings(Duration connectTimeout, Duration readTimeout, SslBundle sslBundle)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates an instance of a ClientHttpRequestFactorySettings record class.
      Parameters:
      connectTimeout - the value for the connectTimeout record component
      readTimeout - the value for the readTimeout record component
      sslBundle - the value for the sslBundle record component
  • Method Details

    • withConnectTimeout

      public ClientHttpRequestFactorySettings withConnectTimeout(Duration connectTimeout)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Return a new ClientHttpRequestFactorySettings instance with an updated connect timeout setting.
      Parameters:
      connectTimeout - the new connect timeout setting
      Returns:
      a new ClientHttpRequestFactorySettings instance
    • withReadTimeout

      public ClientHttpRequestFactorySettings withReadTimeout(Duration readTimeout)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Return a new ClientHttpRequestFactorySettings instance with an updated read timeout setting.
      Parameters:
      readTimeout - the new read timeout setting
      Returns:
      a new ClientHttpRequestFactorySettings instance
    • withSslBundle

      public ClientHttpRequestFactorySettings withSslBundle(SslBundle sslBundle)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Return a new ClientHttpRequestFactorySettings instance with an updated SSL bundle setting.
      Parameters:
      sslBundle - the new SSL bundle setting
      Returns:
      a new ClientHttpRequestFactorySettings instance
      Since:
      3.1.0
    • toString

      public final String toString()
      Deprecated, for removal: This API element is subject to removal in a future version.
      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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • connectTimeout

      public Duration connectTimeout()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the value of the connectTimeout record component.
      Returns:
      the value of the connectTimeout record component
    • readTimeout

      public Duration readTimeout()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the value of the readTimeout record component.
      Returns:
      the value of the readTimeout record component
    • sslBundle

      public SslBundle sslBundle()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the value of the sslBundle record component.
      Returns:
      the value of the sslBundle record component