Enum Class RedirectPolicy

java.lang.Object
java.lang.Enum<RedirectPolicy>
io.fluxzero.sdk.web.RedirectPolicy
All Implemented Interfaces:
Serializable, Comparable<RedirectPolicy>, Constable

public enum RedirectPolicy extends Enum<RedirectPolicy>
Redirect policy for outbound WebRequest execution through the direct native client or proxy.
  • Enum Constant Details

    • DEFAULT

      public static final RedirectPolicy DEFAULT
      Uses the application default. Compatibility defaults allow normal JDK redirects; newer defaults only follow redirects within the original origin.
    • NEVER

      public static final RedirectPolicy NEVER
      Does not follow redirects.
    • SAME_ORIGIN

      public static final RedirectPolicy SAME_ORIGIN
      Follows at most five redirects, and only when scheme, host, and effective port equal the original request origin. The origin is verified before any request headers or body are reused for the redirect target.
    • ALLOW

      public static final RedirectPolicy ALLOW
      Uses the JDK's normal redirect policy, which follows HTTP-to-HTTP, HTTP-to-HTTPS, and HTTPS-to-HTTPS redirects, but not HTTPS-to-HTTP redirects.
  • Method Details

    • values

      public static RedirectPolicy[] 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 RedirectPolicy 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