public class MessageTypeRule extends Object implements ContentTypeRule
Constructor and Description |
---|
MessageTypeRule(Class<? extends Message> messageType,
String contentType) |
Modifier and Type | Method and Description |
---|---|
ContentTypeInfo |
getContentType(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.
|
public ContentTypeInfo getContentType(Message message)
ContentTypeRule
getContentType
in interface ContentTypeRule
message
- the messagepublic String getExpectedContentTypeProperty()
ContentTypeRule
getExpectedContentTypeProperty
in interface ContentTypeRule
Copyright © 2004-2015 The Apache Software Foundation. All Rights Reserved.