Package org.gcube.common.gxhttp.request
Enum Class CredentialsOnRedirect
- All Implemented Interfaces:
Serializable,Comparable<CredentialsOnRedirect>,Constable
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)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTo every host.To the host of the original request and to the hosts of its domain (the last two labels of its name, e.g.Only to the host and port of the original request. -
Method Summary
Modifier and TypeMethodDescriptionstatic CredentialsOnRedirectReturns the enum constant of this class with the specified name.static CredentialsOnRedirect[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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.orgforapi.d4science.org): the default. -
SAME_HOST
Only to the host and port of the original request. -
ANY_HOST
To every host.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-