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 classBaseRestPathholds constants for the base rest path values
-
-
Enum Constant Summary
Enum Constants Enum Constant Description VERSION_1The enum value for the rest path VERSION 1VERSION_1_DOCKET_PATHS_REGEXThe enum value for the regex docket path version 1VERSION_2The enum value for the rest path VERSION 2VERSION_2_DOCKET_PATHS_REGEXThe enum value for the regex docket path version 2VERSION_3The enum value for the rest path VERSION 3VERSION_3_DOCKET_PATHS_REGEXThe enum value for the regex docket path version 3VERSION_4The enum value for the rest path VERSION 4VERSION_4_DOCKET_PATHS_REGEXThe enum value for the regex docket path version 4VERSION_5The enum value for the rest path VERSION 5VERSION_5_DOCKET_PATHS_REGEXThe enum value for the regex docket path version 1
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringREST_API_VERSION_1static java.lang.StringREST_API_VERSION_2static java.lang.StringREST_API_VERSION_3static java.lang.StringREST_API_VERSION_4static java.lang.StringREST_API_VERSION_5static java.lang.StringREST_DOCKET_PATHS_REGEX_SUFFIXstatic java.lang.StringREST_VERSION_1static java.lang.StringREST_VERSION_1_DOCKET_PATHS_REGEXstatic java.lang.StringREST_VERSION_2static java.lang.StringREST_VERSION_2_DOCKET_PATHS_REGEXstatic java.lang.StringREST_VERSION_3static java.lang.StringREST_VERSION_3_DOCKET_PATHS_REGEXstatic java.lang.StringREST_VERSION_4static java.lang.StringREST_VERSION_4_DOCKET_PATHS_REGEXstatic java.lang.StringREST_VERSION_5static java.lang.StringREST_VERSION_5_DOCKET_PATHS_REGEXstatic java.lang.StringSLASH
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetValue()static BaseRestPathvalueOf(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()
-
-