Interface UriMatcher

All Known Subinterfaces:
UriRoute
All Known Implementing Classes:
UriMatchTemplate, 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