code: public boolean matches(String schemeParam, String hostParam, String uriParam) {
          // If URI mapping enforce a host, ensure it is the one used.
          if (this.host != null && !this.host.equalsIgnoreCase(schemeParam + "://" + hostParam)) {
              return false;
          }
  
          if (this.extension != null && !uriParam.endsWith(this.extension)) {
              return false;
          }
  
          if (this.path != null && !uriParam.startsWith(this.path)) {
              return false;
          }
          return true;
      }
docs: Check this matching rule against a request.
  
  @param schemeParam
  @param hostParam
  @param uriParam
  @return true if the rule matches the request