class URL implements Serializable {

    public String getAbsolutePath() {
        if (path != null && !path.startsWith("/")) {
            return "/" + path;
        }
        return path;
    }

    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);
    public  URL(String protocol,
               String username,
               String password,
               String host,
               int port,
               String path,
               Map<String, String> parameters,
               Map<String, Map<String, String>> methodParameters);

}