Class RequestMatcher.MatchResult

  • Enclosing interface:
    RequestMatcher

    public static class RequestMatcher.MatchResult
    extends java.lang.Object
    The result of matching against an HttpServletRequest Contains the status, true or false, of the match and if present, any variables extracted from the match
    Since:
    5.2
    • Method Detail

      • isMatch

        public boolean isMatch()
        Returns:
        true if the comparison against the HttpServletRequest produced a successful match
      • getVariables

        public java.util.Map<java.lang.String,​java.lang.String> getVariables()
        Returns the extracted variable values where the key is the variable name and the value is the variable value
        Returns:
        a map containing key-value pairs representing extracted variable names and variable values