Show Table of Contents
1.5.15. Filters
Outgoing links may have a filter set on their source. The filters supported by the broker are:
legacy-amqp-direct-bindinglegacy-amqp-topic-bindinglegacy-amqp-headers-bindingselector-filterxquery-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"}}}Table 1.1. Filter support by Node type
| 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
|

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.