Class Selector


  • public class Selector
    extends Object
    The Selector class is used for filtering messages according to their header fields and properties.
    • Constructor Detail

      • Selector

        public Selector()
    • Method Detail

      • checks

        public static boolean checks​(String selector)
                              throws SelectorException
        Clients call this method to check a selector syntax.
        Returns:
        true when the syntax is ok.
        Throws:
        SelectorException - When the selector syntax is incorrect.
      • matches

        public static boolean matches​(Message message,
                                      String selector)
        Destinations call this method to filter a message according to a selector.
        Returns:
        true when the selection matches, false otherwise.