Package org.apache.synapse.mediators.base

Examples of org.apache.synapse.mediators.base.SynapseMediator


    public QName getTagQName() {
        return RULES_Q;
    }

    protected Mediator createSpecificMediator(OMElement elem, Properties properties) {
        SynapseMediator sm = new SynapseMediator();

        // after successfully creating the mediator
        // set its common attributes such as tracing etc
        processAuditStatus(sm,elem);
View Full Code Here


        if (!(m instanceof SynapseMediator)) {
            handleException("Unsupported mediator passed in for serialization : " + m.getType());
        }

        SynapseMediator mediator = (SynapseMediator) m;
        OMElement rules = fac.createOMElement("rules", synNS);
        saveTracingState(rules,mediator);

        serializeChildren(rules, mediator.getList());

        return rules;
    }
View Full Code Here

        if (!(m instanceof SynapseMediator)) {
            handleException("Unsupported mediator passed in for serialization : " + m.getType());
        }

        SynapseMediator mediator = (SynapseMediator) m;
        OMElement rules = fac.createOMElement("rules", synNS);
        finalizeSerialization(rules,mediator);

        super.serializeChildren(rules, mediator.getList());

        if (parent != null) {
            parent.addChild(rules);
        }
        return rules;
View Full Code Here

    public QName getTagQName() {
        return RULES_Q;
    }

    public Mediator createMediator(OMElement elem) {
        SynapseMediator sm = new SynapseMediator();

        // after successfully creating the mediator
        // set its common attributes such as tracing etc
        initMediator(sm,elem);
View Full Code Here

        if (!(m instanceof SynapseMediator)) {
            handleException("Unsupported mediator passed in for serialization : " + m.getType());
        }

        SynapseMediator mediator = (SynapseMediator) m;
        OMElement rules = fac.createOMElement("rules", synNS);
        super.serializeChildren(rules, mediator.getList());

        if (parent != null) {
            parent.addChild(rules);
        }
        return rules;
View Full Code Here

    public QName getTagQName() {
        return RULES_Q;
    }

    public Mediator createMediator(OMElement elem) {
        SynapseMediator sm = new SynapseMediator();
        super.addChildren(elem, sm);
        return sm;
    }
View Full Code Here

                dp.setType(Property.DYNAMIC_TYPE);
                dp.setKey(key.getAttributeValue());
                dp.setMapper(MediatorFactoryFinder.getInstance());
                config.setMainMediator(dp);
            } else {
                SynapseMediator sm = (SynapseMediator)
                        MediatorFactoryFinder.getInstance().getMediator(rules);
                if (sm.getList().isEmpty()) {
                    handleException("Invalid configuration, the main mediator specified by the <rules> element is empty");
                } else {
                    config.setMainMediator(sm);
                }
            }
View Full Code Here

     * @return the default configuration to be used
     */
    public static SynapseConfiguration getDefaultConfiguration() {
        // programatically create an empty configuration which just sends messages to thier implicit destinations
        SynapseConfiguration config = new SynapseConfiguration();
        SynapseMediator mainmediator = new SynapseMediator();
        mainmediator.addChild(new SendMediator());
        config.setMainMediator(mainmediator);
        return config;
    }
View Full Code Here

    public QName getTagQName() {
        return RULES_Q;
    }

    public Mediator createSpecificMediator(OMElement elem, Properties properties) {
        SynapseMediator sm = new SynapseMediator();

        // after successfully creating the mediator
        // set its common attributes such as tracing etc
        processAuditStatus(sm,elem);
View Full Code Here

        if (!(m instanceof SynapseMediator)) {
            handleException("Unsupported mediator passed in for serialization : " + m.getType());
        }

        SynapseMediator mediator = (SynapseMediator) m;
        OMElement rules = fac.createOMElement("rules", synNS);
        saveTracingState(rules,mediator);

        serializeChildren(rules, mediator.getList());

        return rules;
    }
View Full Code Here

TOP

Related Classes of org.apache.synapse.mediators.base.SynapseMediator

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.