code: public boolean matches(String sUrl) {
          URL url = null;
          try {
              url = new URL(sUrl);
          } catch (MalformedURLException e) {
              //ignore, just return false
              return false;
          }
          return matches(url);
      }
docs: Gets whether or not the specified URL matches this WildcardURL
  @param sUrl The URL to check.
  @return <code>True</code> if the protocol, domain, directory and path match the specified URL, otherwise <code>false</code>