Package io.micronaut.http.uri
Class UriTemplate.UriTemplateParser
java.lang.Object
io.micronaut.http.uri.UriTemplate.UriTemplateParser
- Direct Known Subclasses:
UriMatchTemplate.UriMatchTemplateParser
- Enclosing class:
- UriTemplate
An URI template parser.
-
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddRawContentSegment(List<UriTemplate.PathSegment> segments, String value, boolean isQuerySegment) Adds a raw content segment.protected voidaddVariableSegment(List<UriTemplate.PathSegment> segments, String variable, String prefix, String delimiter, boolean encode, boolean repeatPrefix, String modifierStr, char modifierChar, char operator, String previousDelimiter, boolean isQuerySegment) Adds a new variable segment.protected voidparse(List<UriTemplate.PathSegment> segments) Parse a list of segments.
-
Method Details
-
parse
Parse a list of segments.- Parameters:
segments- The list of segments
-
addRawContentSegment
protected void addRawContentSegment(List<UriTemplate.PathSegment> segments, String value, boolean isQuerySegment) Adds a raw content segment.- Parameters:
segments- The segmentsvalue- The valueisQuerySegment- Whether is a query segment
-
addVariableSegment
protected void addVariableSegment(List<UriTemplate.PathSegment> segments, String variable, String prefix, String delimiter, boolean encode, boolean repeatPrefix, String modifierStr, char modifierChar, char operator, String previousDelimiter, boolean isQuerySegment) Adds a new variable segment.- Parameters:
segments- The segments to augmentvariable- The variableprefix- The prefix to use when expanding the variabledelimiter- The delimiter to use when expanding the variableencode- Whether to URL encode the variablerepeatPrefix- Whether to repeat the prefix for each expanded variablemodifierStr- The modifier stringmodifierChar- The modifier as charoperator- The currently active operatorpreviousDelimiter- The delimiter to use if a variable appeared before this variableisQuerySegment- Whether is a query segment
-