match

abstract fun match(resourceUri: String): MatchResult?(source)

Matches a given resource URI against the defined resource template.

Return

A MatchResult containing the mapping of variables and a match score if the URI matches the template, or null if no match is found.

Parameters

resourceUri

The resource URI to be matched.