Package org.apache.synapse.mediators.filters

Examples of org.apache.synapse.mediators.filters.OutMediator


                }

                // find the OutMediator
                if (child instanceof OutMediator) {

                    OutMediator outSequence = (OutMediator) child;

                    // if the first child of OutMediator isn't an AutoscaleOutMediator
                    if (!(outSequence.getList().get(0) instanceof AutoscaleOutMediator)) {

                        // we gonna add it!
                        outSequence.getList().add(0, new AutoscaleOutMediator());

                        if (log.isDebugEnabled()) {
                            log.debug("Added Mediator: " + outSequence.getChild(0) + "" +
                                    " to OutMediator. Number of child mediators in OutMediator" +
                                    " is " + outSequence.getList().size() + ".");
                        }

                    }
                }
            }
View Full Code Here


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

        OutMediator mediator = (OutMediator) m;
        OMElement out = fac.createOMElement("out", synNS);
        finalizeSerialization(out,mediator);
        serializeChildren(out, mediator.getList());

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

public class OutMediatorFactory extends AbstractListMediatorFactory {

    private static final QName OUT_Q = new QName(Constants.SYNAPSE_NAMESPACE, "out");

    public Mediator createMediator(OMElement elem) {
        OutMediator filter = new OutMediator();

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

public class OutMediatorFactory extends AbstractListMediatorFactory {

    private static final QName OUT_Q = new QName(XMLConfigConstants.SYNAPSE_NAMESPACE, "out");

    public Mediator createMediator(OMElement elem) {
        OutMediator filter = new OutMediator();

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

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

        OutMediator mediator = (OutMediator) m;
        OMElement out = fac.createOMElement("out", synNS);
        saveTracingState(out,mediator);
        serializeChildren(out, mediator.getList());

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

TOP

Related Classes of org.apache.synapse.mediators.filters.OutMediator

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.