Search in sources :

Example 1 with LoopBackMediator

use of org.apache.synapse.mediators.builtin.LoopBackMediator in project wso2-synapse by wso2.

the class LoopBackMediatorFactory method createSpecificMediator.

@Override
protected Mediator createSpecificMediator(OMElement elem, Properties properties) {
    Mediator loopBackMediator = new LoopBackMediator();
    processAuditStatus(loopBackMediator, elem);
    return loopBackMediator;
}
Also used : LoopBackMediator(org.apache.synapse.mediators.builtin.LoopBackMediator) LoopBackMediator(org.apache.synapse.mediators.builtin.LoopBackMediator) Mediator(org.apache.synapse.Mediator)

Example 2 with LoopBackMediator

use of org.apache.synapse.mediators.builtin.LoopBackMediator in project wso2-synapse by wso2.

the class LoopBackMediatorSerializer method serializeSpecificMediator.

@Override
protected OMElement serializeSpecificMediator(Mediator m) {
    if (!(m instanceof LoopBackMediator)) {
        handleException("Unsupported mediator passed in for serialization : " + m.getType());
    }
    LoopBackMediator mediator = (LoopBackMediator) m;
    OMElement loopBack = fac.createOMElement("loopback", synNS);
    saveTracingState(loopBack, mediator);
    return loopBack;
}
Also used : LoopBackMediator(org.apache.synapse.mediators.builtin.LoopBackMediator) OMElement(org.apache.axiom.om.OMElement)

Aggregations

LoopBackMediator (org.apache.synapse.mediators.builtin.LoopBackMediator)2 OMElement (org.apache.axiom.om.OMElement)1 Mediator (org.apache.synapse.Mediator)1