Interface PathMatcher


public interface PathMatcher
Matches HTTP path against configured path of a route.
  • Method Summary

    Modifier and Type
    Method
    Description
    match(io.helidon.common.uri.UriPath path)
    Match the provided path against the configured path.
    prefixMatch(io.helidon.common.uri.UriPath uriPath)
    Match the provided path against the configured path as a prefix match.
  • Method Details

    • match

      PathMatchers.MatchResult match(io.helidon.common.uri.UriPath path)
      Match the provided path against the configured path. Must do a full match on the whole path.
      Parameters:
      path - HTTP path that was requested by user
      Returns:
      match result
    • prefixMatch

      PathMatchers.PrefixMatchResult prefixMatch(io.helidon.common.uri.UriPath uriPath)
      Match the provided path against the configured path as a prefix match. This is used to handle service routing, where service path pattern may match only a subset of segments. The matching MUST always match exact segments.
      Parameters:
      uriPath - path that was requested by user
      Returns:
      match result