Class MessageSelector

    • Constructor Summary

      Constructors 
      Constructor Description
      MessageSelector​(java.lang.String conditionString)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void compile()  
      <T> T getBodyAs​(java.lang.Class<T> aClass)
      This method is used by message filters which do content based routing (Like the XPath based selectors).
      java.lang.String getConditionString()
      Returns the condition string in SQL92 syntax
      java.lang.Object getLocalConnectionId()
      Used by the NoLocal filter.
      java.lang.Object getProperty​(SimpleString simpleString)
      Extracts the named message property
      boolean isSelected​(MessageImpl message)
      Returns true if the message matches the selector criteria
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MessageSelector

        public MessageSelector​(java.lang.String conditionString)
    • Method Detail

      • getConditionString

        public java.lang.String getConditionString()
        Description copied from interface: Selector
        Returns the condition string in SQL92 syntax
        Specified by:
        getConditionString in interface Selector
        Returns:
        condition string
      • compile

        public void compile()
                     throws jakarta.jms.InvalidSelectorException
        Throws:
        jakarta.jms.InvalidSelectorException
      • isSelected

        public boolean isSelected​(MessageImpl message)
        Description copied from interface: Selector
        Returns true if the message matches the selector criteria
        Specified by:
        isSelected in interface Selector
        Parameters:
        message - the message
        Returns:
        true if the message matches
      • getBodyAs

        public <T> T getBodyAs​(java.lang.Class<T> aClass)
                        throws FilterException
        Description copied from interface: Filterable
        This method is used by message filters which do content based routing (Like the XPath based selectors).
        Specified by:
        getBodyAs in interface Filterable
        Returns:
        Throws:
        FilterException
      • getProperty

        public java.lang.Object getProperty​(SimpleString simpleString)
        Description copied from interface: Filterable
        Extracts the named message property
        Specified by:
        getProperty in interface Filterable
        Returns:
      • getLocalConnectionId

        public java.lang.Object getLocalConnectionId()
        Description copied from interface: Filterable
        Used by the NoLocal filter.
        Specified by:
        getLocalConnectionId in interface Filterable
        Returns:
        a unique id for the connection that produced the message.