Class UriMatchTemplate.UriMatchTemplateParser

    • Constructor Detail

      • UriMatchTemplateParser

        protected UriMatchTemplateParser​(java.lang.String templateText,
                                         UriMatchTemplate matchTemplate)
        Parameters:
        templateText - The template
        matchTemplate - The Uri match template
    • Method Detail

      • getMatchTemplate

        public UriMatchTemplate getMatchTemplate()
        Returns:
        The URI match template
      • addVariableSegment

        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)
        Description copied from class: UriTemplate.UriTemplateParser
        Adds a new variable segment.
        Overrides:
        addVariableSegment in class UriTemplate.UriTemplateParser
        Parameters:
        segments - The segments to augment
        variable - The variable
        prefix - The prefix to use when expanding the variable
        delimiter - The delimiter to use when expanding the variable
        encode - Whether to URL encode the variable
        repeatPrefix - Whether to repeat the prefix for each expanded variable
        modifierStr - The modifier string
        modifierChar - The modifier as char
        operator - The currently active operator
        previousDelimiter - The delimiter to use if a variable appeared before this variable
        isQuerySegment - Whether is a query segment
      • getVariablePattern

        protected java.lang.String getVariablePattern​(java.lang.String variable,
                                                      char operator)
        Parameters:
        variable - The variable
        operator - The operator
        Returns:
        The variable match pattern