protected static class UriTemplate.UriTemplateParser
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
protected void |
addRawContentSegment(java.util.List<UriTemplate.PathSegment> segments,
java.lang.String value,
boolean isQuerySegment)
Adds a raw content segment.
|
protected void |
addVariableSegment(java.util.List<UriTemplate.PathSegment> segments,
java.lang.String variable,
java.lang.String prefix,
java.lang.String delimiter,
boolean encode,
boolean repeatPrefix,
java.lang.String modifierStr,
char modifierChar,
char operator,
java.lang.String previousDelimiter,
boolean isQuerySegment)
Adds a new variable segment.
|
protected void |
parse(java.util.List<UriTemplate.PathSegment> segments)
Parse a list of segments.
|
protected void parse(java.util.List<UriTemplate.PathSegment> segments)
segments
- The list of segmentsprotected void addRawContentSegment(java.util.List<UriTemplate.PathSegment> segments, java.lang.String value, boolean isQuerySegment)
segments
- The segmentsvalue
- The valueisQuerySegment
- Whether is a query segmentprotected void addVariableSegment(java.util.List<UriTemplate.PathSegment> segments, java.lang.String variable, java.lang.String prefix, java.lang.String delimiter, boolean encode, boolean repeatPrefix, java.lang.String modifierStr, char modifierChar, char operator, java.lang.String previousDelimiter, boolean isQuerySegment)
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