docs: private int urlType(String urlPattern) {
          String pattern = urlPattern.toString();
          if (pattern.startsWith("*.")) { //extension
              return EXTENSION_PATTERN; //0
          } else if (pattern.startsWith("/") && pattern.endsWith("/*")) { // path prefix
              return PATHPREFIX_PATTERN; //1
          } else if (pattern.equals("/")) {
              return DEFAULT_PATTERN; //3
          }
          return EXACT_PATTERN; //2
      }