Beruflich Dokumente
Kultur Dokumente
WHAT IS FILTER ?
Filter is an special form of message processor.
It examines the Message
(Payload/Properties/Headers) If it matches
certain criteria then it will passes the
message to next processor otherwise it
simply discards the message.
We will see the Expression filter in upcoming
slides.
EXPRESSION FILTER
See below example
EXPRESSION FILTER
If you hit the url http://localhost:8081/app/sample?name=john
You will see the response as shown below.
HOW TO AVOID
Add a expression filter to the flow
<expression-filter expression="#[message.inboundProperties['http.query.params']
['name'] !=null]" doc:name="Expression"/>
COMPLETE CODE
NOTES
THANK YOU