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 classURITemplate.TemplateComponentstatic classURITemplate.Type
-
Field Summary
Fields Modifier and Type Field Description intcapturingGroupsintcomplexExpressionsURITemplate.TemplateComponent[]componentsThe components, first one is always the stem, so if the stem has been matched it can be ignoredintliteralCharacterCountThe number of characters that are literals in the path.booleanprefixMatchStringstemStringtemplate
-
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 intcompareTo(URITemplate uriTemplate)intcountPathParamNames()voiddump(int level)StringtoString()
-
-
-
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:
compareToin interfaceComparable<URITemplate>
-
countPathParamNames
public int countPathParamNames()
-
-