WSO2 ESB - Send Mediator

Drop Mediator

Drop mediator stops the processing of the current message.

Syntax

 <drop/>

UI Configuration

none.

Usage Scenario

<definitions xmlns="http://ws.apache.org/ns/synapse">    
    <filter source="get-property('To')" regex=".*/StockQuote.*">
        <send>
            <endpoint>
                <address uri="http://localhost:9000/services/SimpleStockQuoteService"/>
            </endpoint>
        </send>
        <drop/>
    </filter>
    <send/>
</definitions> 

In this scenario message is dropped after it is sent to the end point. This will prevent message being sent twice from the in-path.