Enum ResourceMethod.JaxrsType
- All Implemented Interfaces:
Serializable
,Comparable<ResourceMethod.JaxrsType>
,java.lang.constant.Constable
- Enclosing class:
ResourceMethod
Resource method classification based on the recognized JAX-RS
resource method types.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionJAX-RS resource method.JAX-RS sub-resource locator.JAX-RS sub-resource method. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static ResourceMethod.JaxrsType
(package private) abstract PathPattern
createPatternFor
(String pathTemplate) Create a proper matching path pattern from the provided template for the selected method type.static ResourceMethod.JaxrsType
Returns the enum constant of this type with the specified name.static ResourceMethod.JaxrsType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
RESOURCE_METHOD
JAX-RS resource method. Does not have a path template assigned. Is assigned to a particular HTTP method. -
SUB_RESOURCE_METHOD
JAX-RS sub-resource method. Has a sub-path template assigned and is assigned to a particular HTTP method. -
SUB_RESOURCE_LOCATOR
JAX-RS sub-resource locator. Has a sub-path template assigned but is not assigned to any particular HTTP method. Instead it produces a sub-resource instance that should be further used in the request URI matching.
-
-
Constructor Details
-
JaxrsType
private JaxrsType()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
createPatternFor
Create a proper matching path pattern from the provided template for the selected method type.- Parameters:
pathTemplate
- method path template.- Returns:
- method matching path pattern.
-
classify
-