Interface PathMatcher.Result

All Known Subinterfaces:
PathMatcher.PrefixResult
Enclosing interface:
PathMatcher

public static interface PathMatcher.Result
The result of matching a PathMatcher to a given URI path.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Whether the tested vector matches the associated path template.
    param(String name)
    Get value for a given parameter of the associated path matcher.
    Returns the values of parameters that were specified in the associated path template.
  • Method Details

    • matches

      boolean matches()
      Whether the tested vector matches the associated path template.
      Returns:
      whether the test was successful
    • params

      Map<String,String> params()
      Returns the values of parameters that were specified in the associated path template.
      Returns:
      an immutable map of parameters and their values
    • param

      String param(String name)
      Get value for a given parameter of the associated path matcher.
      Parameters:
      name - a parameter name to get value.
      Returns:
      a value of the given parameter.
      Throws:
      NullPointerException - if the specified key is null and this map does not permit null keys.