Package io.github.astrapi69.spring.rest
Enum BaseRestPath
- java.lang.Object
-
- java.lang.Enum<BaseRestPath>
-
- io.github.astrapi69.spring.rest.BaseRestPath
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BaseRestPath>
public enum BaseRestPath extends java.lang.Enum<BaseRestPath>
The enum classBaseRestPath
holds constants for the base rest path values
-
-
Enum Constant Summary
Enum Constants Enum Constant Description VERSION_1
The enum value for the rest path VERSION 1VERSION_1_DOCKET_PATHS_REGEX
The enum value for the regex docket path version 1VERSION_2
The enum value for the rest path VERSION 2VERSION_2_DOCKET_PATHS_REGEX
The enum value for the regex docket path version 2VERSION_3
The enum value for the rest path VERSION 3VERSION_3_DOCKET_PATHS_REGEX
The enum value for the regex docket path version 3VERSION_4
The enum value for the rest path VERSION 4VERSION_4_DOCKET_PATHS_REGEX
The enum value for the regex docket path version 4VERSION_5
The enum value for the rest path VERSION 5VERSION_5_DOCKET_PATHS_REGEX
The enum value for the regex docket path version 1
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
REST_API_VERSION_1
static java.lang.String
REST_API_VERSION_2
static java.lang.String
REST_API_VERSION_3
static java.lang.String
REST_API_VERSION_4
static java.lang.String
REST_API_VERSION_5
static java.lang.String
REST_DOCKET_PATHS_REGEX_SUFFIX
static java.lang.String
REST_VERSION_1
static java.lang.String
REST_VERSION_1_DOCKET_PATHS_REGEX
static java.lang.String
REST_VERSION_2
static java.lang.String
REST_VERSION_2_DOCKET_PATHS_REGEX
static java.lang.String
REST_VERSION_3
static java.lang.String
REST_VERSION_3_DOCKET_PATHS_REGEX
static java.lang.String
REST_VERSION_4
static java.lang.String
REST_VERSION_4_DOCKET_PATHS_REGEX
static java.lang.String
REST_VERSION_5
static java.lang.String
REST_VERSION_5_DOCKET_PATHS_REGEX
static java.lang.String
SLASH
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getValue()
static BaseRestPath
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BaseRestPath[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VERSION_1
public static final BaseRestPath VERSION_1
The enum value for the rest path VERSION 1
-
VERSION_1_DOCKET_PATHS_REGEX
public static final BaseRestPath VERSION_1_DOCKET_PATHS_REGEX
The enum value for the regex docket path version 1
-
VERSION_2
public static final BaseRestPath VERSION_2
The enum value for the rest path VERSION 2
-
VERSION_2_DOCKET_PATHS_REGEX
public static final BaseRestPath VERSION_2_DOCKET_PATHS_REGEX
The enum value for the regex docket path version 2
-
VERSION_3
public static final BaseRestPath VERSION_3
The enum value for the rest path VERSION 3
-
VERSION_3_DOCKET_PATHS_REGEX
public static final BaseRestPath VERSION_3_DOCKET_PATHS_REGEX
The enum value for the regex docket path version 3
-
VERSION_4
public static final BaseRestPath VERSION_4
The enum value for the rest path VERSION 4
-
VERSION_4_DOCKET_PATHS_REGEX
public static final BaseRestPath VERSION_4_DOCKET_PATHS_REGEX
The enum value for the regex docket path version 4
-
VERSION_5
public static final BaseRestPath VERSION_5
The enum value for the rest path VERSION 5
-
VERSION_5_DOCKET_PATHS_REGEX
public static final BaseRestPath VERSION_5_DOCKET_PATHS_REGEX
The enum value for the regex docket path version 1
-
-
Field Detail
-
SLASH
public static final java.lang.String SLASH
- See Also:
- Constant Field Values
-
REST_DOCKET_PATHS_REGEX_SUFFIX
public static final java.lang.String REST_DOCKET_PATHS_REGEX_SUFFIX
- See Also:
- Constant Field Values
-
REST_API_VERSION_1
public static final java.lang.String REST_API_VERSION_1
- See Also:
- Constant Field Values
-
REST_API_VERSION_2
public static final java.lang.String REST_API_VERSION_2
- See Also:
- Constant Field Values
-
REST_API_VERSION_3
public static final java.lang.String REST_API_VERSION_3
- See Also:
- Constant Field Values
-
REST_API_VERSION_4
public static final java.lang.String REST_API_VERSION_4
- See Also:
- Constant Field Values
-
REST_API_VERSION_5
public static final java.lang.String REST_API_VERSION_5
- See Also:
- Constant Field Values
-
REST_VERSION_1
public static final java.lang.String REST_VERSION_1
- See Also:
- Constant Field Values
-
REST_VERSION_1_DOCKET_PATHS_REGEX
public static final java.lang.String REST_VERSION_1_DOCKET_PATHS_REGEX
- See Also:
- Constant Field Values
-
REST_VERSION_2
public static final java.lang.String REST_VERSION_2
- See Also:
- Constant Field Values
-
REST_VERSION_2_DOCKET_PATHS_REGEX
public static final java.lang.String REST_VERSION_2_DOCKET_PATHS_REGEX
- See Also:
- Constant Field Values
-
REST_VERSION_3
public static final java.lang.String REST_VERSION_3
- See Also:
- Constant Field Values
-
REST_VERSION_3_DOCKET_PATHS_REGEX
public static final java.lang.String REST_VERSION_3_DOCKET_PATHS_REGEX
- See Also:
- Constant Field Values
-
REST_VERSION_4
public static final java.lang.String REST_VERSION_4
- See Also:
- Constant Field Values
-
REST_VERSION_4_DOCKET_PATHS_REGEX
public static final java.lang.String REST_VERSION_4_DOCKET_PATHS_REGEX
- See Also:
- Constant Field Values
-
REST_VERSION_5
public static final java.lang.String REST_VERSION_5
- See Also:
- Constant Field Values
-
REST_VERSION_5_DOCKET_PATHS_REGEX
public static final java.lang.String REST_VERSION_5_DOCKET_PATHS_REGEX
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static BaseRestPath[] 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 (BaseRestPath c : BaseRestPath.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BaseRestPath 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
-
getValue
public java.lang.String getValue()
-
-