Code example for URI

Methods: toURL

0
     * @return the registryURL 
     */ 
    public URL getRegistryUrl() {
        if (registryURL == null) {
            try { 
                return typeURI.toURL();
            } catch (MalformedURLException e) {
                log.severe("URI "+typeURI+" is a malformed URL. "+e);
                return null; 
            } catch ( IllegalArgumentException e ) {
                log.severe("URI "+typeURI+" is a illegal URL. "+e);
                return null; 
            } 
        } 
        return registryURL;
    } 
 
    /** 
     * @param registryURL the registryURL to set 
     */ 
    public void setRegistryUrl(URL registryURL) {