Class SelectorTranslator
- java.lang.Object
-
- org.apache.activemq.artemis.utils.SelectorTranslator
-
public class SelectorTranslator extends java.lang.ObjectThis class converts a JMS selector expression into an ActiveMQ Artemis core filter expression. JMS selector and ActiveMQ Artemis filters use the same syntax but have different identifiers. We basically just need to replace the JMS header and property Identifier names with the corresponding ActiveMQ Artemis field and header Identifier names. We must be careful not to substitute any literals, or identifiers whose name contains the name of one we want to substitute. This makes it less trivial than a simple search and replace.
-
-
Constructor Summary
Constructors Constructor Description SelectorTranslator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringconvertHQToActiveMQFilterString(java.lang.String hqFilterString)static java.lang.StringconvertToActiveMQFilterString(java.lang.String selectorString)
-