1.5.15. Filters
Outgoing links may have a filter set on their source. The filters supported by the broker are:
legacy-amqp-direct-binding
legacy-amqp-topic-binding
legacy-amqp-headers-binding
selector-filter
xquery-filter
Filters can be specified through the
filter
property in the link
properties specified in the address. The value of this filter
property should be a list of maps, with each map specifying a filter through key-value pairs for name, descriptor (can be specified as numeric or symbolic) and a value. For example:
my-xml-exchange; {link:{filter:{value:"declare variable $colour external; colour='red'",name:x,descriptor:"apache.org:xquery-filter:string"}}}
direct | topic | fanout | headers | xml | queue | |
---|---|---|---|---|---|---|
legacy-amqp-direct-binding
|
Yes
|
Yes
|
No
|
No
|
Yes
|
Yes
|
legacy-amqp-topic-binding
|
No
|
Yes
|
No
|
No
|
No
|
Yes
|
legacy-amqp-headers-binding
|
No
|
No
|
No
|
Yes
|
No
|
No
|
xquery-filter
|
No
|
No
|
No
|
No
|
Yes
|
No
|
selector-filter
|
Yes
|
Yes
|
Yes
|
Yes
|
Yes
|
Yes
|