Package org.eclipse.aether
Enum ConfigurationProperties.RedirectMode
- java.lang.Object
-
- java.lang.Enum<ConfigurationProperties.RedirectMode>
-
- org.eclipse.aether.ConfigurationProperties.RedirectMode
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ConfigurationProperties.RedirectMode>
- Enclosing class:
- ConfigurationProperties
public static enum ConfigurationProperties.RedirectMode extends java.lang.Enum<ConfigurationProperties.RedirectMode>
The mode that controls how HTTP redirects are handled. By default, any redirect is followed, but this can be restricted to only redirects within the same authority or no redirects at all.- Since:
- 2.0.25
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANYAny redirect is followed.NONENo redirects allowed.SAME_AUTHORITYRedirects only within same authority.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConfigurationProperties.RedirectModevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ConfigurationProperties.RedirectMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final ConfigurationProperties.RedirectMode NONE
No redirects allowed.
-
SAME_AUTHORITY
public static final ConfigurationProperties.RedirectMode SAME_AUTHORITY
Redirects only within same authority.
-
ANY
public static final ConfigurationProperties.RedirectMode ANY
Any redirect is followed.
-
-
Method Detail
-
values
public static ConfigurationProperties.RedirectMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ConfigurationProperties.RedirectMode c : ConfigurationProperties.RedirectMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConfigurationProperties.RedirectMode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-