code: public boolean matches(URL url) {
          boolean matches = false;
          if(wildcardMatches(protocol, url.getProtocol()) && wildcardMatches(host, url.getHost()) && wildcardMatches(getPath(), url.getPath())) {
              matches = true;
          }
          return matches;
      }
docs: Gets whether or not the specified URL matches this WildcardURL
  @param url The URL to check.
  @return <code>True</code> if the protocol, domain, directory and path match the specified URL, otherwise <code>false</code>