public final class AmqpMessageSupport extends Object
| Constructor and Description |
|---|
AmqpMessageSupport() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.qpid.proton.amqp.Binary |
getBinaryFromMessageBody(org.apache.activemq.command.ActiveMQBytesMessage message)
Return the encoded form of the BytesMessage as an AMQP Binary instance.
|
static org.apache.qpid.proton.amqp.Binary |
getBinaryFromMessageBody(org.apache.activemq.command.ActiveMQObjectMessage message)
Return the encoded form of the BytesMessage as an AMQP Binary instance.
|
static org.apache.qpid.proton.amqp.Binary |
getBinaryFromMessageBody(org.apache.activemq.command.ActiveMQTextMessage message)
Return the encoded form of the Message as an AMQP Binary instance.
|
static Charset |
getCharsetForTextualContent(String contentType) |
static Map<String,Object> |
getMapFromMessageBody(org.apache.activemq.command.ActiveMQMapMessage message)
Return the underlying Map from the JMS MapMessage instance.
|
static Object |
getMessageAnnotation(String key,
org.apache.qpid.proton.message.Message message)
Safe way to access message annotations which will check internal structure and
either return the annotation if it exists or null if the annotation or any annotations
are present.
|
static org.apache.qpid.proton.amqp.Symbol |
getSymbol(String key)
Lookup and return the correct Proton Symbol instance based on the given key.
|
static boolean |
isContentType(String contentType,
org.apache.qpid.proton.message.Message message)
Check whether the content-type field of the properties section (if present) in
the given message matches the provided string (where null matches if there is
no content type present.
|
public static final String JMS_AMQP_PREFIX
public static final int JMS_AMQP_PREFIX_LENGTH
public static final String MESSAGE_FORMAT
public static final String ORIGINAL_ENCODING
public static final String NATIVE
public static final String HEADER
public static final String PROPERTIES
public static final String FIRST_ACQUIRER
public static final String CONTENT_TYPE
public static final String CONTENT_ENCODING
public static final String REPLYTO_GROUP_ID
public static final String DELIVERY_ANNOTATION_PREFIX
public static final String MESSAGE_ANNOTATION_PREFIX
public static final String FOOTER_PREFIX
public static final String JMS_AMQP_HEADER
public static final String JMS_AMQP_PROPERTIES
public static final String JMS_AMQP_ORIGINAL_ENCODING
public static final String JMS_AMQP_MESSAGE_FORMAT
public static final String JMS_AMQP_NATIVE
public static final String JMS_AMQP_FIRST_ACQUIRER
public static final String JMS_AMQP_CONTENT_TYPE
public static final String JMS_AMQP_CONTENT_ENCODING
public static final String JMS_AMQP_REPLYTO_GROUP_ID
public static final String JMS_AMQP_DELIVERY_ANNOTATION_PREFIX
public static final String JMS_AMQP_MESSAGE_ANNOTATION_PREFIX
public static final String JMS_AMQP_FOOTER_PREFIX
public static final org.apache.qpid.proton.amqp.Binary EMPTY_BINARY
public static final org.apache.qpid.proton.amqp.messaging.Data EMPTY_BODY
public static final org.apache.qpid.proton.amqp.messaging.Data NULL_OBJECT_BODY
public static final short AMQP_UNKNOWN
public static final short AMQP_NULL
public static final short AMQP_DATA
public static final short AMQP_SEQUENCE
public static final short AMQP_VALUE_NULL
public static final short AMQP_VALUE_STRING
public static final short AMQP_VALUE_BINARY
public static final short AMQP_VALUE_MAP
public static final short AMQP_VALUE_LIST
public static final String SERIALIZED_JAVA_OBJECT_CONTENT_TYPE
public static final String OCTET_STREAM_CONTENT_TYPE
public AmqpMessageSupport()
public static org.apache.qpid.proton.amqp.Symbol getSymbol(String key)
key - the String value name of the Symbol to locate.public static Object getMessageAnnotation(String key, org.apache.qpid.proton.message.Message message)
key - the String key to use to lookup an annotation.message - the AMQP message object that is being examined.public static boolean isContentType(String contentType, org.apache.qpid.proton.message.Message message)
contentType - content type string to compare against, or null if nonemessage - the AMQP message object that is being examined.public static Charset getCharsetForTextualContent(String contentType)
contentType - the contentType of the received messagepublic static org.apache.qpid.proton.amqp.Binary getBinaryFromMessageBody(org.apache.activemq.command.ActiveMQBytesMessage message) throws javax.jms.JMSException
message - the Message whose binary encoded body is needed.javax.jms.JMSException - if an error occurs while fetching the binary payload.public static org.apache.qpid.proton.amqp.Binary getBinaryFromMessageBody(org.apache.activemq.command.ActiveMQObjectMessage message) throws javax.jms.JMSException
message - the Message whose binary encoded body is needed.javax.jms.JMSException - if an error occurs while fetching the binary payload.public static org.apache.qpid.proton.amqp.Binary getBinaryFromMessageBody(org.apache.activemq.command.ActiveMQTextMessage message) throws javax.jms.JMSException
message - the Message whose binary encoded body is needed.javax.jms.JMSException - if an error occurs while fetching the binary payload.public static Map<String,Object> getMapFromMessageBody(org.apache.activemq.command.ActiveMQMapMessage message) throws javax.jms.JMSException
message - the MapMessage whose underlying Map is requested.javax.jms.JMSException - if an error occurs in constructing or fetching the Map.Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.