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;
}
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;
}
Aggregations