Class URITemplate
- java.lang.Object
-
- org.jboss.resteasy.reactive.server.mapping.URITemplate
-
- All Implemented Interfaces:
Comparable<URITemplate>
,Dumpable
public class URITemplate extends Object implements Dumpable, Comparable<URITemplate>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
URITemplate.TemplateComponent
static class
URITemplate.Type
-
Field Summary
Fields Modifier and Type Field Description int
capturingGroups
int
complexExpressions
URITemplate.TemplateComponent[]
components
The components, first one is always the stem, so if the stem has been matched it can be ignoredint
literalCharacterCount
The number of characters that are literals in the path.boolean
prefixMatch
String
stem
String
template
-
Constructor Summary
Constructors Constructor Description URITemplate(String template, boolean prefixMatch)
URITemplate(String template, String stem, int literalCharacterCount, int capturingGroups, int complexExpressions, URITemplate.TemplateComponent[] components, boolean prefixMatch)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(URITemplate uriTemplate)
int
countPathParamNames()
void
dump(int level)
String
toString()
-
-
-
Field Detail
-
template
public final String template
-
stem
public final String stem
-
literalCharacterCount
public final int literalCharacterCount
The number of characters that are literals in the path. According to the spec we need to sort by this.
-
capturingGroups
public final int capturingGroups
-
complexExpressions
public final int complexExpressions
-
components
public final URITemplate.TemplateComponent[] components
The components, first one is always the stem, so if the stem has been matched it can be ignored
-
prefixMatch
public final boolean prefixMatch
-
-
Constructor Detail
-
URITemplate
public URITemplate(String template, boolean prefixMatch)
-
URITemplate
public URITemplate(String template, String stem, int literalCharacterCount, int capturingGroups, int complexExpressions, URITemplate.TemplateComponent[] components, boolean prefixMatch)
-
-
Method Detail
-
compareTo
public int compareTo(URITemplate uriTemplate)
- Specified by:
compareTo
in interfaceComparable<URITemplate>
-
countPathParamNames
public int countPathParamNames()
-
-