Enum Class CredentialsOnRedirect

java.lang.Object
java.lang.Enum<CredentialsOnRedirect>
org.gcube.common.gxhttp.request.CredentialsOnRedirect
All Implemented Interfaces:
Serializable, Comparable<CredentialsOnRedirect>, Constable

public enum CredentialsOnRedirect extends Enum<CredentialsOnRedirect>
Where a redirected GXRequest still carries its credentials (the headers Authorization, d4s-user and gcube-token). A redirect is always followed; the credentials are never sent from https to http, whatever the choice.
Author:
Luca Frosini (ISTI - CNR)
  • Enum Constant Details

    • SAME_DOMAIN

      public static final CredentialsOnRedirect SAME_DOMAIN
      To the host of the original request and to the hosts of its domain (the last two labels of its name, e.g. d4science.org for api.d4science.org): the default.
    • SAME_HOST

      public static final CredentialsOnRedirect SAME_HOST
      Only to the host and port of the original request.
    • ANY_HOST

      public static final CredentialsOnRedirect ANY_HOST
      To every host.
  • Method Details

    • values

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