Class ContentTypeRuleSet


  • public class ContentTypeRuleSet
    extends Object
    A set of content type rules.
    • Constructor Detail

      • ContentTypeRuleSet

        public ContentTypeRuleSet()
    • Method Detail

      • addRule

        public void addRule​(ContentTypeRule rule)
        Add a content type rule to this set.
        Parameters:
        rule - the rule to add
      • getContentTypeInfo

        public ContentTypeInfo getContentTypeInfo​(javax.jms.Message message)
                                           throws javax.jms.JMSException
        Determine the content type of the given message. This method will try the registered rules in turn until the first rule matches.
        Parameters:
        message - the message
        Returns:
        the content type information for the message or null if none of the rules matches
        Throws:
        javax.jms.JMSException
      • getDefaultContentTypeProperty

        public String getDefaultContentTypeProperty()