|
5 | 5 | %% Copyright (c) 2007-2026 Broadcom. All Rights Reserved. The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries. All rights reserved. |
6 | 6 |
|
7 | 7 | %% AMQP Filter Expressions Version 1.0 Committee Specification Draft 01 |
| 8 | +%% https://docs.oasis-open.org/amqp/filtex/v1.0/csd01/filtex-v1.0-csd01.html#_Toc67929253 |
| 9 | +-define(CAP_FILTEX_SQL, <<"AMQP_FILTEX_SQL_V1_0">>). |
| 10 | +-define(CAP_FILTEX_PROP, <<"AMQP_FILTEX_PROP_V1_0">>). |
8 | 11 | %% https://docs.oasis-open.org/amqp/filtex/v1.0/csd01/filtex-v1.0-csd01.html#_Toc67929266 |
9 | 12 | -define(DESCRIPTOR_NAME_PROPERTIES_FILTER, <<"amqp:properties-filter">>). |
10 | 13 | -define(DESCRIPTOR_CODE_PROPERTIES_FILTER, 16#173). |
11 | 14 | -define(DESCRIPTOR_NAME_APPLICATION_PROPERTIES_FILTER, <<"amqp:application-properties-filter">>). |
12 | 15 | -define(DESCRIPTOR_CODE_APPLICATION_PROPERTIES_FILTER, 16#174). |
13 | | - |
14 | 16 | %% A filter with this name contains an AMQP SQL expression. |
15 | 17 | -define(FILTER_NAME_SQL, <<"sql-filter">>). |
16 | 18 | %% https://docs.oasis-open.org/amqp/filtex/v1.0/csd01/filtex-v1.0-csd01.html#_Toc67929276 |
17 | 19 | -define(DESCRIPTOR_NAME_SQL_FILTER, <<"amqp:sql-filter">>). |
18 | 20 | -define(DESCRIPTOR_CODE_SQL_FILTER, 16#120). |
| 21 | + |
| 22 | +%% A filter with this name contains a JMS message selector. |
| 23 | +%% We use the same name as Qpid JMS in |
| 24 | +%% https://github.com/apache/qpid-jms/blob/2.10.0/qpid-jms-client/src/main/java/org/apache/qpid/jms/provider/amqp/AmqpSupport.java#L75 |
| 25 | +-define(FILTER_NAME_SELECTOR, <<"jms-selector">>). |
| 26 | +%% SQL-based filtering syntax |
| 27 | +%% This capability and these descriptors are defined in |
| 28 | +%% https://www.amqp.org/specification/1.0/filters |
| 29 | +-define(CAP_SELECTOR, <<"APACHE.ORG:SELECTOR">>). |
| 30 | +-define(DESCRIPTOR_NAME_SELECTOR_FILTER, <<"apache.org:selector-filter:string">>). |
| 31 | +-define(DESCRIPTOR_CODE_SELECTOR_FILTER, 16#0000468C00000004). |
0 commit comments