Package org.dcm4che3.conf.api

Examples of org.dcm4che3.conf.api.ConfigurationException


                return false;
   
            setConfigurationDN(ne.next().getName() + "," + baseDN);
            return true;
        } catch (NamingException e) {
            throw new ConfigurationException(e);
        } finally {
            LdapUtils.safeClose(ne);
        }
    }
View Full Code Here


        try {
            storeCertificates(dn, certs);
        } catch (NameNotFoundException e) {
            throw new ConfigurationNotFoundException(e);
        } catch (NamingException e) {
            throw new ConfigurationException(e);
        } catch (CertificateEncodingException e) {
            throw new ConfigurationException(e);
        }
    }
View Full Code Here

                    DirContext.REMOVE_ATTRIBUTE, new BasicAttribute(userCertificate));
            ctx.modifyAttributes(dn, new ModificationItem[] { removeCert });
        } catch (NameNotFoundException e) {
            throw new ConfigurationNotFoundException(e);
        } catch (NamingException e) {
            throw new ConfigurationException(e);
        }
    }
View Full Code Here

        try {
            return loadCertificates(dn);
        } catch (NameNotFoundException e) {
            throw new ConfigurationNotFoundException(e);
        } catch (NamingException e) {
            throw new ConfigurationException(e);
        } catch (CertificateException e) {
            throw new ConfigurationException(e);
        }
    }
View Full Code Here

            loadChilds(device, deviceDN);
            return device;
        } catch (NameNotFoundException e) {
            throw new ConfigurationNotFoundException("Device with specified name not found",e);
        } catch (NamingException 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

                return props;

            props = new Properties();
            InputStream is = getResourceAsStream(cl, APP_RESOURCE_FILE_NAME);
            if (is == null) {
                throw new ConfigurationException(
                        "Failed to access resource: " + APP_RESOURCE_FILE_NAME);
            }
            try {
                props.load(is);
            } catch (IOException e) {
                throw new ConfigurationException(
                        "Failed to parse resource: " + APP_RESOURCE_FILE_NAME);
            } finally {
                SafeClose.close(is);
            }
            propertiesCache.put(cl, props);
View Full Code Here

                    loggerNode.getInt("dicomNetworkConnectionReference." + (i+1), 0) - 1));
        }
        String arrDeviceRef =
                loggerNode.get("dcmAuditRecordRepositoryDeviceReference", null);
        if (arrDeviceRef == null)
            throw new ConfigurationException("Missing dcmAuditRecordRepositoryDeviceReference");

        logger.setAuditRecordRepositoryDevice(
                arrDeviceRef.equals(config.deviceRef(device.getDeviceName()))
                    ? device
                    : loadAuditRecordRepository(arrDeviceRef));
View Full Code Here

        try {
            for (String name : prefs.childrenNames()) {
                map.put(name, new PrefsConfigReader(prefs.node(name)));
            }
        } catch (BackingStoreException e) {
            throw new ConfigurationException("Cannot read child configuration nodes from "+prefs.name(),e);
        }

        return map;
    }
View Full Code Here

    public ConfigReader getChildReader(String propName) throws ConfigurationException {
        try {
            if (!prefs.nodeExists(propName)) throw new ConfigurationNotFoundException("Node "+propName+" does not exist for "+prefs.absolutePath()); else
            return new PrefsConfigReader(prefs.node(propName));
        } catch (BackingStoreException e) {
            throw new ConfigurationException("Cannot read child configuration node from "+prefs.absolutePath(),e);
        }
    }
View Full Code Here

    @Override
    public void removeCollectionElement(String keyName, String keyValue) throws ConfigurationException {
        try {
            prefs.node(keyValue).removeNode();
        } catch (BackingStoreException e) {
            throw new ConfigurationException("Cannot remove config child node "+keyValue+" for "+prefs.absolutePath() ,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.