|
4 | 4 | %% |
5 | 5 | %% Copyright (c) 2007-2025 Broadcom. All Rights Reserved. The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries. All rights reserved. |
6 | 6 |
|
7 | | -%% A filter with this name contains a JMS message selector. |
8 | | -%% We use the same name as sent by the Qpid JMS client in |
9 | | -%% https://github.com/apache/qpid-jms/blob/2.7.0/qpid-jms-client/src/main/java/org/apache/qpid/jms/provider/amqp/AmqpSupport.java#L75 |
10 | | --define(FILTER_NAME_JMS, <<"jms-selector">>). |
11 | | - |
12 | | -%% A filter with this name contains an SQL expression. |
13 | | -%% In the current version, such a filter must comply with the JMS message selector syntax. |
14 | | -%% However, we use a name other than "jms-selector" in case we want to extend the allowed syntax |
15 | | -%% in the future, for example allowing for some of the extended grammar described in |
16 | | -%% §6 "SQL Filter Expressions" of |
17 | | -%% https://groups.oasis-open.org/higherlogic/ws/public/document?document_id=66227 |
18 | | --define(FILTER_NAME_SQL, <<"sql-filter">>). |
19 | | - |
20 | | -%% SQL-based filtering syntax |
21 | | -%% These descriptors are defined in |
22 | | -%% https://www.amqp.org/specification/1.0/filters |
23 | | --define(DESCRIPTOR_NAME_SELECTOR_FILTER, <<"apache.org:selector-filter:string">>). |
24 | | --define(DESCRIPTOR_CODE_SELECTOR_FILTER, 16#0000468C00000004). |
25 | | - |
26 | | -%% AMQP Filter Expressions Version 1.0 Working Draft 09 |
27 | | -%% https://groups.oasis-open.org/higherlogic/ws/public/document?document_id=66227 |
| 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#_Toc67929266 |
28 | 9 | -define(DESCRIPTOR_NAME_PROPERTIES_FILTER, <<"amqp:properties-filter">>). |
29 | 10 | -define(DESCRIPTOR_CODE_PROPERTIES_FILTER, 16#173). |
30 | 11 | -define(DESCRIPTOR_NAME_APPLICATION_PROPERTIES_FILTER, <<"amqp:application-properties-filter">>). |
31 | 12 | -define(DESCRIPTOR_CODE_APPLICATION_PROPERTIES_FILTER, 16#174). |
| 13 | + |
| 14 | +%% A filter with this name contains an AMQP SQL expression. |
| 15 | +-define(FILTER_NAME_SQL, <<"sql-filter">>). |
| 16 | +%% https://docs.oasis-open.org/amqp/filtex/v1.0/csd01/filtex-v1.0-csd01.html#_Toc67929276 |
| 17 | +-define(DESCRIPTOR_NAME_SQL_FILTER, <<"amqp:sql-filter">>). |
| 18 | +-define(DESCRIPTOR_CODE_SQL_FILTER, 16#120). |
0 commit comments