...
When the Drop mediator is within the "in" In
sequence, it sends an HTTP 202 Accepted response to the client when it stops the message flow. When the Drop mediator is within the "out" Out
sequence before the Send mediator, no response is sent to the client.
Info |
---|
The Drop mediator is a content-unaware mediator. |
...
Table of Contents | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
As with other mediators, after adding the drop mediator to a sequence, you can click its up and down arrows to move its location in the sequence.
Info | ||
---|---|---|
| ||
You can configure the mediator using XML. Click switch to source view in the Mediator window. |
Example
Code Block | ||||
---|---|---|---|---|
| ||||
<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> |
...