Package org.apache.synapse.commons.evaluators.config

Examples of org.apache.synapse.commons.evaluators.config.ConditionFactory


     * @throws EvaluatorException if the configuration is invalid
     */
    public void init(OMElement conditions) throws EvaluatorException {
        Iterator it = conditions.getChildElements();

        ConditionFactory rf = new ConditionFactory();
        List<Condition> conditionList = new ArrayList<Condition>();
        while (it.hasNext()) {
            OMElement conditionElement = (OMElement) it.next();

            if (!conditionElement.getLocalName().equals(EvaluatorConstants.CONDITION)) {
                handleException("Only " + EvaluatorConstants.CONDITION + " elements expected");
            }

            Condition r = null;
            try {
                r = rf.createCondition(conditionElement);
            } catch (EvaluatorException e) {
                handleException("Error creating " +
                        EvaluatorConstants.CONDITION + ": " + e.getMessage());
            }

View Full Code Here

TOP

Related Classes of org.apache.synapse.commons.evaluators.config.ConditionFactory

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.