Search in sources :

Example 1 with RespondMediator

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;
}
Also used : RespondMediator(org.apache.synapse.mediators.builtin.RespondMediator) OMElement(org.apache.axiom.om.OMElement)

Example 2 with RespondMediator

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;
}
Also used : RespondMediator(org.apache.synapse.mediators.builtin.RespondMediator) RespondMediator(org.apache.synapse.mediators.builtin.RespondMediator) Mediator(org.apache.synapse.Mediator)

Aggregations

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