Enum Class HttpClient.Redirect

java.lang.Object
java.lang.Enum<HttpClient.Redirect>
dev.gmitch215.bytebox.net.http.HttpClient.Redirect
All Implemented Interfaces:
Serializable, Comparable<HttpClient.Redirect>, Constable
Enclosing class:
HttpClient

public static enum HttpClient.Redirect extends Enum<HttpClient.Redirect>
What to do with a redirect.
  • Enum Constant Details

    • NEVER

      public static final HttpClient.Redirect NEVER
      Return it rather than follow it.
    • ALWAYS

      public static final HttpClient.Redirect ALWAYS
      Follow it, which is the default here as it is elsewhere.
    • NORMAL

      public static final HttpClient.Redirect NORMAL
      Follow it, since the platform does not downgrade a scheme anyway.
  • Method Details

    • values

      public static HttpClient.Redirect[] 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 HttpClient.Redirect 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