Java URL Create buildURL(String id)

Here you can find the source of buildURL(String id)

Description

build URL

License

Open Source License

Declaration

public static URL buildURL(String id) 

Method Source Code


//package com.java2s;
import java.net.MalformedURLException;
import java.net.URL;

public class Main {
    private static final String TRACKER_URL_PREFIX = "https://bugzilla.redhat.com/show_bug.cgi?id=";

    public static URL buildURL(String id) {
        try {/*from   w  ww . j  a  v a 2s . com*/
            return new URL(TRACKER_URL_PREFIX + id);
        } catch (MalformedURLException e) {
            throw new IllegalStateException(e);
        }
    }
}

Related

  1. buildUrl(String context, String... relocations)
  2. buildUrl(String context, String... relocations)
  3. buildUrl(String host, int port, String path, Map parameters)
  4. buildUrl(String host, int port, String path, Map parameters)
  5. buildURL(String host, String path, Map params)
  6. buildUrl(String repositoryUrl, String resourceUrl)
  7. buildURL(String spec)
  8. buildURL(String spec)
  9. buildURL(String spec, boolean trailingSlash)