Class UriTypeMatchTemplate

    • Constructor Detail

      • UriTypeMatchTemplate

        public UriTypeMatchTemplate​(java.lang.CharSequence templateString,
                                    java.lang.Class... variableTypes)
        Parameters:
        templateString - The template
        variableTypes - The variable types
      • UriTypeMatchTemplate

        protected UriTypeMatchTemplate​(java.lang.CharSequence templateString,
                                       java.util.List<UriTemplate.PathSegment> segments,
                                       java.util.regex.Pattern matchPattern,
                                       java.lang.Class[] variableTypes,
                                       java.util.List<UriMatchVariable> variables)
        Parameters:
        templateString - The template
        segments - The segments
        matchPattern - The match pattern
        variableTypes - The variable types
        variables - The variables
    • Method Detail

      • nest

        public UriTypeMatchTemplate nest​(java.lang.CharSequence uriTemplate)
        Description copied from class: UriTemplate
        Nests another URI template with this template.
        Overrides:
        nest in class UriMatchTemplate
        Parameters:
        uriTemplate - The URI template. If it does not begin with forward slash it will automatically be appended with forward slash
        Returns:
        The new URI template
      • nest

        public UriTypeMatchTemplate nest​(java.lang.CharSequence uriTemplate,
                                         java.lang.Class... variableTypes)
        Parameters:
        uriTemplate - The URI template
        variableTypes - The variable types
        Returns:
        The new URI template
      • expand

        public java.lang.String expand​(java.util.Map<java.lang.String,​java.lang.Object> parameters)
        Description copied from class: UriTemplate
        Expand the string with the given parameters.
        Overrides:
        expand in class UriTemplate
        Parameters:
        parameters - The parameters
        Returns:
        The expanded URI
      • createParser

        protected UriTemplate.UriTemplateParser createParser​(java.lang.String templateString,
                                                             java.lang.Object... parserArguments)
        Description copied from class: UriTemplate
        Creates a parser.
        Overrides:
        createParser in class UriMatchTemplate
        Parameters:
        templateString - The template
        parserArguments - The parsed arguments
        Returns:
        The created parser
      • resolveTypePattern

        protected java.lang.String resolveTypePattern​(java.lang.Class variableType,
                                                      java.lang.String variable,
                                                      char operator)
        Parameters:
        variableType - The variable type
        variable - The variable
        operator - The operator
        Returns:
        The variable match pattern