class URL implements Serializable {

  public boolean isAnyHost() {
    return Constants.ANYHOST_VALUE.equals(host) || getParameter(Constants.ANYHOST_KEY, false);
  }

  protected  URL();
  public  URL(String protocol, String host, int port);
  public  URL(String protocol, String host, int port, String[] pairs);
  public  URL(String protocol, String host, int port, Map<String, String> parameters);
  public  URL(String protocol, String host, int port, String path);
  public  URL(String protocol, String host, int port, String path, String... pairs);
  public  URL(String protocol, String host, int port, String path, Map<String, String> parameters);
  public  URL(String protocol, String username, String password,
             String host, int port, String path);
  public  URL(String protocol, String username, String password,
             String host, int port, String path, String... pairs);
  public  URL(String protocol, String username, String password,
             String host, int port, String path, Map<String, String> parameters);

}