use of org.apache.synapse.mediators.builtin.RespondMediator in project wso2-synapse by wso2.
the class RespondMediatorSerializer method serializeSpecificMediator.
@Override
protected OMElement serializeSpecificMediator(Mediator m) {
if (!(m instanceof RespondMediator)) {
handleException("Unsupported mediator passed in for serialization : " + m.getType());
}
RespondMediator mediator = (RespondMediator) m;
OMElement respond = fac.createOMElement("respond", synNS);
saveTracingState(respond, mediator);
return respond;
}
use of org.apache.synapse.mediators.builtin.RespondMediator in project wso2-synapse by wso2.
the class RespondMediatorFactory method createSpecificMediator.
@Override
protected Mediator createSpecificMediator(OMElement elem, Properties properties) {
Mediator responseMediator = new RespondMediator();
processAuditStatus(responseMediator, elem);
return responseMediator;
}
Aggregations