public class PropertyRule extends java.lang.Object implements ContentTypeRule
| Constructor and Description |
|---|
PropertyRule(java.lang.String propertyName) |
| Modifier and Type | Method and Description |
|---|---|
ContentTypeInfo |
getContentType(javax.jms.Message message)
Attempt to determine the content type of the given JMS message.
|
java.lang.String |
getExpectedContentTypeProperty()
Get the name of the message property used to extract the content type from,
if applicable.
|
public ContentTypeInfo getContentType(javax.jms.Message message) throws javax.jms.JMSException
ContentTypeRulegetContentType in interface ContentTypeRulemessage - the messagejavax.jms.JMSExceptionpublic java.lang.String getExpectedContentTypeProperty()
ContentTypeRulegetExpectedContentTypeProperty in interface ContentTypeRuleCopyright © 2004-2015 The Apache Software Foundation. All Rights Reserved.