Enum 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>
- Enclosing class:
- RewriteLocationResponseHeaderGatewayFilterFactory
public static enum RewriteLocationResponseHeaderGatewayFilterFactory.StripVersion extends Enum<RewriteLocationResponseHeaderGatewayFilterFactory.StripVersion>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALWAYS_STRIP
Version will be stripped, even if the original request path contains version.AS_IN_REQUEST
Version will be stripped only if the original request path contains no version.NEVER_STRIP
Version will not be stripped, even if the original request path contains no version.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RewriteLocationResponseHeaderGatewayFilterFactory.StripVersion
valueOf(String name)
Returns the enum constant of this type with the specified name.static RewriteLocationResponseHeaderGatewayFilterFactory.StripVersion[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NEVER_STRIP
public static final RewriteLocationResponseHeaderGatewayFilterFactory.StripVersion NEVER_STRIP
Version will not be stripped, even if the original request path contains no version.
-
AS_IN_REQUEST
public static final RewriteLocationResponseHeaderGatewayFilterFactory.StripVersion AS_IN_REQUEST
Version will be stripped only if the original request path contains no version. This is the Default.
-
ALWAYS_STRIP
public static final RewriteLocationResponseHeaderGatewayFilterFactory.StripVersion ALWAYS_STRIP
Version will be stripped, even if the original request path contains version.
-
-
Method Detail
-
values
public static RewriteLocationResponseHeaderGatewayFilterFactory.StripVersion[] 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 (RewriteLocationResponseHeaderGatewayFilterFactory.StripVersion c : RewriteLocationResponseHeaderGatewayFilterFactory.StripVersion.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RewriteLocationResponseHeaderGatewayFilterFactory.StripVersion valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-