Class PathMatchers

java.lang.Object
io.helidon.http.PathMatchers

public final class PathMatchers extends Object
Utility methods to create path matchers.
  • Method Details

    • exact

      public static PathMatcher exact(String pathToMatch)
      Exact match path matcher.
      Parameters:
      pathToMatch - the path must match exactly the provided path
      Returns:
      exact match path matcher
    • prefix

      public static PathMatcher prefix(String pathToMatch)
      Prefix match path matcher.
      Parameters:
      pathToMatch - the path must be prefixed by the provided path
      Returns:
      prefix match path matcher
    • pattern

      public static PathMatcher pattern(String pattern)
      Pattern match path matcher.
      Parameters:
      pattern - pattern that may contain parameters and allowed patterns
      Returns:
      pattern match path matcher
    • create

      public static PathMatcher create(String pathPattern)
      Create a path matcher from a path pattern. This method will analyze the pattern and return appropriate path matcher.
      Parameters:
      pathPattern - path pattern to match agains
      Returns:
      path matcher
    • any

      public static PathMatcher any()
      Path matcher matching any path.
      Returns:
      matcher matching any path