Enum URITemplate.Type
- java.lang.Object
-
- java.lang.Enum<URITemplate.Type>
-
- org.jboss.resteasy.reactive.server.mapping.URITemplate.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<URITemplate.Type>
- Enclosing class:
- URITemplate
public static enum URITemplate.Type extends Enum<URITemplate.Type>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CUSTOM_REGEX
A custom regex, that actually needs to be resolved via a Pattern.DEFAULT_REGEX
The default regex, that matches any path segment up to a /LITERAL
An actual literal
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static URITemplate.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static URITemplate.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LITERAL
public static final URITemplate.Type LITERAL
An actual literal
-
DEFAULT_REGEX
public static final URITemplate.Type DEFAULT_REGEX
The default regex, that matches any path segment up to a /
-
CUSTOM_REGEX
public static final URITemplate.Type CUSTOM_REGEX
A custom regex, that actually needs to be resolved via a Pattern. This may match additional segments.
-
-
Method Detail
-
values
public static URITemplate.Type[] 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 (URITemplate.Type c : URITemplate.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static URITemplate.Type 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
-
-