Enum Class ClientHttpRequestFactorySettings.Redirects
java.lang.Object
java.lang.Enum<ClientHttpRequestFactorySettings.Redirects>
org.springframework.boot.http.client.ClientHttpRequestFactorySettings.Redirects
- All Implemented Interfaces:
Serializable
,Comparable<ClientHttpRequestFactorySettings.Redirects>
,Constable
- Enclosing class:
- ClientHttpRequestFactorySettings
public static enum ClientHttpRequestFactorySettings.Redirects
extends Enum<ClientHttpRequestFactorySettings.Redirects>
Redirect strategies.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDon't follow redirects (fail if the underlying library has no support).Follow redirects (fail if the underlying library has no support).Follow redirects (if the underlying library has support). -
Method Summary
Modifier and TypeMethodDescriptionof
(HttpRedirects httpRedirects) Return the relatedClientHttpRequestFactorySettings.Redirects
for the givenHttpRedirects
.Returns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FOLLOW_WHEN_POSSIBLE
Follow redirects (if the underlying library has support). -
FOLLOW
Follow redirects (fail if the underlying library has no support). -
DONT_FOLLOW
Don't follow redirects (fail if the underlying library has no support).
-
-
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
-
of
Return the relatedClientHttpRequestFactorySettings.Redirects
for the givenHttpRedirects
.- Parameters:
httpRedirects
- the HTTP redirects- Returns:
- the related redirects
- Since:
- 3.5.0
-