Package org.dcm4che3.conf.api

Examples of org.dcm4che3.conf.api.ConfigurationException


           
            loadFrom(device, deviceNode);
            loadChilds(device, deviceNode);
            return device;
        } catch (BackingStoreException e) {
            throw new ConfigurationException(e);
        } catch (CertificateException e) {
            throw new ConfigurationException(e);
        }   finally {

            // if this loadDevice call initialized the cache, then clean it up
            if (doCleanUpCache) currentlyLoadedDevicesLocal.remove();
        }
View Full Code Here


    public synchronized void persistCertificates(String certRef, X509Certificate... certs)
            throws ConfigurationException {
        try {
            storeCertificates(certRef, certs);
        } catch (CertificateEncodingException e) {
            throw new ConfigurationException(e);
        } catch (BackingStoreException e) {
            throw new ConfigurationException(e);
        }
    }
View Full Code Here

        PreferencesUtils.removeKeys(prefs, USER_CERTIFICATE, 0,
                prefs.getInt(USER_CERTIFICATE + ".#", 0));
        try {
            prefs.flush();
        } catch (BackingStoreException e) {
            throw new ConfigurationException(e);
        }
    }
View Full Code Here

    public synchronized X509Certificate[] findCertificates(String certRef)
            throws ConfigurationException {
        try {
            return loadCertificates(certRef);
        } catch (CertificateException e) {
            throw new ConfigurationException(e);
        } catch (BackingStoreException e) {
            throw new ConfigurationException(e);
        }
    }
View Full Code Here

    @Override
    public void sync() throws ConfigurationException {
        try {
            rootPrefs.sync();
        } catch (BackingStoreException e) {
            throw new ConfigurationException(e);
        }
    }
View Full Code Here

                    LdapUtils.attrs("hl7UniqueApplicationName", "hl7ApplicationName", name));
            return true;
        } catch (NameAlreadyBoundException e) {
            return false;
        } catch (NamingException e) {
            throw new ConfigurationException(e);
       }
    }
View Full Code Here

        if (appNamesRegistryExists())
            try {
                config.destroySubcontext(hl7appDN(name, appNamesRegistryDN));
            } catch (NameNotFoundException e) {
            } catch (NamingException e) {
                throw new ConfigurationException(e);
            }
    }
View Full Code Here

            if (!config.exists(dn))
                config.createSubcontext(dn,
                        LdapUtils.attrs("hl7UniqueApplicationNamesRegistryRoot",
                                "cn", "Unique HL7 Application Names Registry"));
        } catch (NamingException e) {
            throw new ConfigurationException(e);
        }
        appNamesRegistryDN = dn;
    }
View Full Code Here

                + config.getConfigurationDN();
        try {
            if (!config.exists(dn))
                return false;
        } catch (NamingException e) {
            throw new ConfigurationException(e);
        }
       
        appNamesRegistryDN = dn;
        return true;
    }
View Full Code Here

            ((Hashtable<Object,Object>) env)
                .put(Context.PROVIDER_URL, s.substring(0, end));
            this.baseDN = s.substring(end+1);
            this.ctx = new InitialDirContext(env);
        } catch (Exception e) {
            throw new ConfigurationException(e);
        }
    }
View Full Code Here

TOP

Related Classes of org.dcm4che3.conf.api.ConfigurationException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.