Interface ContentTypeRule
-
- All Known Implementing Classes:
DefaultRule
,MessageTypeRule
,PropertyRule
public interface ContentTypeRule
Interface implemented by content type rules.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ContentTypeInfo
getContentType(javax.jms.Message message)
Attempt to determine the content type of the given JMS message.String
getExpectedContentTypeProperty()
Get the name of the message property used to extract the content type from, if applicable.
-
-
-
Method Detail
-
getContentType
ContentTypeInfo getContentType(javax.jms.Message message) throws javax.jms.JMSException
Attempt to determine the content type of the given JMS message.- Parameters:
message
- the message- Returns:
- If the rule matches, the return value encapsulates the content type of the message and the message property name from which is was extracted (if applicable). If the rule doesn't match, the method returns null.
- Throws:
javax.jms.JMSException
-
getExpectedContentTypeProperty
String getExpectedContentTypeProperty()
Get the name of the message property used to extract the content type from, if applicable.- Returns:
- the property name or null if not applicable
-
-