ResourceTemplateMatcher

Matches resource URIs against a ResourceTemplate.

Implementations parse a URI template once at construction time and then match candidate URIs against that template via match. The returned MatchResult.score must reflect match specificity so that a selection algorithm can prefer the most specific template when multiple templates match the same URI.

Inheritors

Properties

Link copied to clipboard

the template to match URIs against

Functions

Link copied to clipboard
abstract fun match(resourceUri: String): MatchResult?

Matches a given resource URI against the defined resource template.