Class UriMatchTemplate

java.lang.Object
io.micronaut.http.uri.UriTemplate
io.micronaut.http.uri.UriMatchTemplate
All Implemented Interfaces:
UriMatcher, Comparable<UriTemplate>
Direct Known Subclasses:
UriTypeMatchTemplate

public class UriMatchTemplate extends UriTemplate implements UriMatcher
Extends UriTemplate and adds the ability to match a URI to a given template using the UriMatcher.match(java.net.URI) method.
Since:
1.0
Author:
Graeme Rocher
  • Field Details

  • Constructor Details

    • UriMatchTemplate

      public UriMatchTemplate(CharSequence templateString)
      Construct a new URI template for the given template.
      Parameters:
      templateString - The template string
    • UriMatchTemplate

      protected UriMatchTemplate(CharSequence templateString, Object... parserArguments)
      Construct a new URI template for the given template.
      Parameters:
      templateString - The template string
      parserArguments - The parsed arguments
    • UriMatchTemplate

      protected UriMatchTemplate(CharSequence templateString, List<UriTemplate.PathSegment> segments, Pattern matchPattern, List<UriMatchVariable> variables)
      Parameters:
      templateString - The template
      segments - The list of segments
      matchPattern - The match pattern
      variables - The variables
  • Method Details