code: public boolean match(String accessPath) {
          if (extension != null) {
              for (int i = accessPath.length() - 1; i >= 0; i--) {
                  if (accessPath.charAt(i) == '.') {
                      String ext = accessPath.substring(i + 1);
                      if (extension.equals(ext)) {
                          return true;
                      }
                      break;
                  }
              }
          }
          if (accessPath.equals(path)) {
              return true;
          }
          if (prefix != null && accessPath.startsWith(prefix)) {
              return true;
          }
          return false;
      }
docs: Checks for a match.
  
  @param accessPath
  @return true if the url fits any of the patterns