Package org.dcm4che3.conf.api

Examples of org.dcm4che3.conf.api.ConfigurationNotFoundException


    }

    @Override
    public synchronized void removeDevice(String name) throws ConfigurationException {
        if (!configurationExists())
            throw new ConfigurationNotFoundException();

        removeDeviceWithDN(deviceRef(name));
    }
View Full Code Here


    private void removeDeviceWithDN(String deviceDN) throws ConfigurationException {
        try {
            destroySubcontextWithChilds(deviceDN);
        } catch (NameNotFoundException e) {
            throw new ConfigurationNotFoundException(e);
        } catch (NamingException e) {
            throw new ConfigurationException(e);
        }
    }
View Full Code Here

    public synchronized void persistCertificates(String dn, X509Certificate... certs)
            throws ConfigurationException {
        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

        try {
            ModificationItem removeCert = new ModificationItem(
                    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

    @Override
    public synchronized X509Certificate[] findCertificates(String dn) throws ConfigurationException {
        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

                       
            loadFrom(device, attrs);
            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 {
View Full Code Here

    }

    @Override
    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

    public HL7Application findHL7Application(String name)
            throws ConfigurationException {
        HL7Application ae = get(name);
        if (ae == null)
            throw new ConfigurationNotFoundException(
                    "Unknown HL7 Application: " + name);
        return ae;
    }
View Full Code Here

    @Override
    public ConfigReader getChildReader(String propName) throws ConfigurationException {
        try {
            return new LdapConfigIO(config.getAttributes(getFolderDn(propName)), getFolderDn(propName), config);
        } catch (NamingException e) {
            throw new ConfigurationNotFoundException(e);
        }
    }
View Full Code Here

*
*/
public class EchoSCP implements Processor {

    public static void main(String[] args) throws Exception {
        LdapDicomConfiguration dicomConf = new LdapDicomConfiguration();
        Device device = dicomConf.findDevice(args[0]);
        Main main = new Main();
        main.bind("dicomDevice", new DicomDeviceComponent(device));
        main.addRouteBuilder(new RouteBuilder(){

            @Override
View Full Code Here

TOP

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

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.