Package net.windwards.dnsfrontend.api

Examples of net.windwards.dnsfrontend.api.ConfigurationException


    private Map<String, Name> monikers = new HashMap<String, Name>();

    @Override
    public void initialize() throws ConfigurationException {
        if (this.domains == null)
            throw new ConfigurationException("Monikers section missing");

        Map<String, DomainConfiguration> qualified = new HashMap<String, DomainConfiguration>();

        for(Map.Entry<String, DomainConfiguration> entry : this.domains.entrySet()) {
            String domainName = entry.getKey();
            if(!domainName.endsWith(".")) domainName = domainName + ".";
            Name name;
            try {
                name = new Name(domainName);
            } catch (TextParseException e) {
                throw new ConfigurationException("Can't parse domain " + domainName);
            }
            qualified.put(domainName, entry.getValue());
            this.monikers.put(entry.getValue().moniker, name);
        }
View Full Code Here

TOP

Related Classes of net.windwards.dnsfrontend.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.