Enum Class RewriteLocationResponseHeaderGatewayFilterFactory.StripVersion
java.lang.Object
java.lang.Enum<RewriteLocationResponseHeaderGatewayFilterFactory.StripVersion>
org.springframework.cloud.gateway.filter.factory.RewriteLocationResponseHeaderGatewayFilterFactory.StripVersion
- All Implemented Interfaces:
Serializable, Comparable<RewriteLocationResponseHeaderGatewayFilterFactory.StripVersion>, Constable
- Enclosing class:
RewriteLocationResponseHeaderGatewayFilterFactory
public static enum RewriteLocationResponseHeaderGatewayFilterFactory.StripVersion
extends Enum<RewriteLocationResponseHeaderGatewayFilterFactory.StripVersion>
- Author:
- Vitaliy Pavlyuk
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionVersion will be stripped, even if the original request path contains version.Version will be stripped only if the original request path contains no version.Version will not be stripped, even if the original request path contains no version. -
Method Summary
Modifier and TypeMethodDescriptionReturns 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
-
NEVER_STRIP
Version will not be stripped, even if the original request path contains no version. -
AS_IN_REQUEST
Version will be stripped only if the original request path contains no version. This is the Default. -
ALWAYS_STRIP
Version will be stripped, even if the original request path contains version.
-
-
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
-