Interface UriMatcher

All Known Subinterfaces:
UriRouteInfo<T,R>
All Known Implementing Classes:
DefaultUrlRouteInfo, UriMatchTemplate, UriTemplateMatcher, UriTypeMatchTemplate

public interface UriMatcher

A URI matcher is capable of matching a URI and producing a UriMatchInfo.

Since:
1.0
Author:
Graeme Rocher
  • Method Details

    • match

      default Optional<? extends UriMatchInfo> match(URI uri)
      Match the given URI object.
      Parameters:
      uri - The URI
      Returns:
      True if it matches
    • match

      Optional<? extends UriMatchInfo> match(String uri)
      Match the given URI string.
      Parameters:
      uri - The uRI
      Returns:
      True if it matches