Enum Class HttpRedirects

java.lang.Object
java.lang.Enum<HttpRedirects>
org.springframework.boot.http.client.HttpRedirects
All Implemented Interfaces:
Serializable, Comparable<HttpRedirects>, Constable

public enum HttpRedirects extends Enum<HttpRedirects>
Redirect strategies support by HTTP clients.
Since:
3.5.0
Author:
Phillip Webb
  • Enum Constant Details

    • FOLLOW_WHEN_POSSIBLE

      public static final HttpRedirects FOLLOW_WHEN_POSSIBLE
      Follow redirects (if the underlying library has support).
    • FOLLOW

      public static final HttpRedirects FOLLOW
      Follow redirects (fail if the underlying library has no support).
    • DONT_FOLLOW

      public static final HttpRedirects DONT_FOLLOW
      Don't follow redirects (fail if the underlying library has no support).
  • Method Details

    • values

      public static HttpRedirects[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static HttpRedirects valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null