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"}}}
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
Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.