private void processSavanConfig()

in modules/core/src/main/java/org/apache/savan/configuration/ConfigurationManager.java [149:184]


    private void processSavanConfig(OMElement element) throws SavanException {
        if (!SAVAN_CONFIG.equals(element.getLocalName())) {
            throw new SavanException(
                    "'savan-config'should be the document element of the savan configuration xml file");
        }

        OMElement protocolsElement = element.getFirstChildWithName(new QName(PROTOCOLS));
        if (protocolsElement == null) {
            throw new SavanException(
                    "'protocols' element should be present, as a sub-element of the 'savan-config' element");
        }
        processProtocols(protocolsElement);

        OMElement subscriberStoresElement =
                element.getFirstChildWithName(new QName(SUBSCRIBER_STORES));
        if (subscriberStoresElement == null) {
            throw new SavanException(
                    "'subscriberStores' element should be present, as a sub-element of the 'savan-config' element");
        }
        processSubscriberStores(subscriberStoresElement);

        OMElement filtersElement = element.getFirstChildWithName(new QName(FILTERS));
        if (subscriberStoresElement == null) {
            throw new SavanException(
                    "'Filters' element should be present, as a sub-element of the 'savan-config' element");
        }
        processFilters(filtersElement);

        OMElement subscribersElement = element.getFirstChildWithName(new QName(SUBSCRIBERS));
        if (subscriberStoresElement == null) {
            throw new SavanException(
                    "'Subscribers' element should be present as a sub-element of the 'savan-config' element");
        }
        processSubscribers(subscribersElement);

    }