public final class AMQPMessageSupport extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
AMQ_PROPERTY_PREFIX |
static short |
AMQP_DATA |
static short |
AMQP_NULL |
static short |
AMQP_SEQUENCE |
static short |
AMQP_UNKNOWN |
static short |
AMQP_VALUE_BINARY |
static short |
AMQP_VALUE_LIST |
static short |
AMQP_VALUE_MAP |
static short |
AMQP_VALUE_NULL |
static short |
AMQP_VALUE_STRING |
static String |
CONTENT_ENCODING |
static String |
CONTENT_TYPE |
static String |
DELIVERY_ANNOTATION_PREFIX |
static String |
DURABLE |
static org.apache.qpid.proton.amqp.Binary |
EMPTY_BINARY |
static org.apache.qpid.proton.amqp.messaging.Data |
EMPTY_BODY |
static String |
ENCODED_PREFIX |
static String |
FIRST_ACQUIRER |
static String |
FOOTER_PREFIX |
static SimpleString |
HDR_ORIGINAL_ADDRESS_ANNOTATION |
static String |
HEADER |
static org.apache.qpid.proton.amqp.Symbol |
INGRESS_TIME_MSG_ANNOTATION |
static String |
JMS_AMQP_CONTENT_ENCODING |
static String |
JMS_AMQP_CONTENT_TYPE |
static String |
JMS_AMQP_DELIVERY_ANNOTATION_PREFIX |
static String |
JMS_AMQP_ENCODED_DELIVERY_ANNOTATION_PREFIX |
static String |
JMS_AMQP_ENCODED_FOOTER_PREFIX |
static String |
JMS_AMQP_ENCODED_MESSAGE_ANNOTATION_PREFIX |
static String |
JMS_AMQP_FIRST_ACQUIRER |
static String |
JMS_AMQP_FOOTER_PREFIX |
static String |
JMS_AMQP_HEADER |
static String |
JMS_AMQP_HEADER_DURABLE |
static String |
JMS_AMQP_HEADER_PRIORITY |
static String |
JMS_AMQP_MESSAGE_ANNOTATION_PREFIX |
static String |
JMS_AMQP_NATIVE |
static String |
JMS_AMQP_ORIGINAL_ENCODING |
static String |
JMS_AMQP_PREFIX |
static int |
JMS_AMQP_PREFIX_LENGTH |
static String |
JMS_AMQP_PROPERTIES |
static String |
JMS_AMQP_REPLYTO_GROUP_ID |
static byte |
JMS_BYTES_MESSAGE
Value mapping for JMS_MSG_TYPE which indicates the message is a JMS BytesMessage
which has a body that consists of raw bytes.
|
static org.apache.qpid.proton.amqp.Symbol |
JMS_DELIVERY_TIME
Deprecated.
Use the SCHEDULED_DELIVERY_TIME value as this is not JMS specific and will be removed.
|
static org.apache.qpid.proton.amqp.Symbol |
JMS_DEST_TYPE_MSG_ANNOTATION |
static byte |
JMS_MAP_MESSAGE
Value mapping for JMS_MSG_TYPE which indicates the message is a JMS MapMessage
which has an Map instance serialized in its message body.
|
static byte |
JMS_MESSAGE
Value mapping for JMS_MSG_TYPE which indicates the message is a generic JMS Message
which has no body.
|
static org.apache.qpid.proton.amqp.Symbol |
JMS_MSG_TYPE
Attribute used to mark the class type of JMS message that a particular message
instance represents, used internally by the client.
|
static byte |
JMS_OBJECT_MESSAGE
Value mapping for JMS_MSG_TYPE which indicates the message is a JMS ObjectMessage
which has an Object value serialized in its message body.
|
static org.apache.qpid.proton.amqp.Symbol |
JMS_REPLY_TO_TYPE_MSG_ANNOTATION |
static String |
JMS_REPLY_TO_TYPE_MSG_ANNOTATION_SYMBOL_NAME |
static byte |
JMS_STREAM_MESSAGE
Value mapping for JMS_MSG_TYPE which indicates the message is a JMS StreamMessage
which has a body that is a structured collection of primitives values.
|
static byte |
JMS_TEXT_MESSAGE
Value mapping for JMS_MSG_TYPE which indicates the message is a JMS TextMessage
which has a body that contains a UTF-8 encoded String.
|
static String |
MESSAGE_ANNOTATION_PREFIX |
static int |
MESSAGE_DEFAULT_PRIORITY |
static long |
MESSAGE_DEFAULT_TIME_TO_LIVE |
static String |
NATIVE |
static int |
NON_PERSISTENT |
static String |
OCTET_STREAM_CONTENT_TYPE
Content type used to mark Data sections as containing arbitrary bytes.
|
static String |
ORIGINAL_ENCODING |
static int |
PERSISTENT |
static String |
PRIORITY |
static String |
PROPERTIES |
static byte |
QUEUE_TYPE |
static String |
REPLYTO_GROUP_ID |
static org.apache.qpid.proton.amqp.Symbol |
ROUTING_TYPE
Attribute used to mark the Application defined delivery time assigned to the message
|
static org.apache.qpid.proton.amqp.Symbol |
SCHEDULED_DELIVERY_DELAY
Attribute used to mark the Application defined delivery time assigned to the message
|
static org.apache.qpid.proton.amqp.Symbol |
SCHEDULED_DELIVERY_TIME
Attribute used to mark the Application defined delivery time assigned to the message
|
static org.apache.qpid.proton.amqp.Symbol |
SERIALIZED_JAVA_OBJECT_CONTENT_TYPE
Content type used to mark Data sections as containing a serialized java object.
|
static byte |
TEMP_QUEUE_TYPE |
static byte |
TEMP_TOPIC_TYPE |
static byte |
TOPIC_TYPE |
static String |
X_OPT_INGRESS_TIME |
static String |
X_OPT_PREFIX |
| Constructor and Description |
|---|
AMQPMessageSupport() |
| Modifier and Type | Method and Description |
|---|---|
static CoreBytesMessageWrapper |
createBytesMessage(long id,
byte[] array,
int arrayOffset,
int length,
CoreMessageObjectPools coreMessageObjectPools) |
static CoreBytesMessageWrapper |
createBytesMessage(long id,
CoreMessageObjectPools coreMessageObjectPools) |
static CoreMapMessageWrapper |
createMapMessage(long id,
CoreMessageObjectPools coreMessageObjectPools) |
static CoreMapMessageWrapper |
createMapMessage(long id,
Map<String,Object> content,
CoreMessageObjectPools coreMessageObjectPools) |
static CoreMessageWrapper |
createMessage(long id,
CoreMessageObjectPools coreMessageObjectPools) |
static CoreMessageWrapper |
createObjectMessage(long id,
org.apache.qpid.proton.amqp.Binary serializedForm,
CoreMessageObjectPools coreMessageObjectPools) |
static CoreMessageWrapper |
createObjectMessage(long id,
byte[] array,
int offset,
int length,
CoreMessageObjectPools coreMessageObjectPools) |
static CoreObjectMessageWrapper |
createObjectMessage(long id,
CoreMessageObjectPools coreMessageObjectPools) |
static CoreStreamMessageWrapper |
createStreamMessage(long id,
CoreMessageObjectPools coreMessageObjectPools) |
static CoreTextMessageWrapper |
createTextMessage(long id,
CoreMessageObjectPools coreMessageObjectPools) |
static CoreTextMessageWrapper |
createTextMessage(long id,
String text,
CoreMessageObjectPools coreMessageObjectPools) |
static String |
destination(RoutingType destinationType,
String address) |
static byte |
destinationType(String destination) |
static Charset |
getCharsetForTextualContent(String contentType) |
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.
|
static boolean |
isContentType(String expected,
org.apache.qpid.proton.amqp.Symbol actual)
Check whether the content-type given matches the expect value.
|
static String |
toAddress(String destination) |
static String |
toAnnotationName(String key) |
public static final int NON_PERSISTENT
public static final int PERSISTENT
public static final long MESSAGE_DEFAULT_TIME_TO_LIVE
public static final int MESSAGE_DEFAULT_PRIORITY
public static SimpleString HDR_ORIGINAL_ADDRESS_ANNOTATION
public static final String JMS_REPLY_TO_TYPE_MSG_ANNOTATION_SYMBOL_NAME
public static final org.apache.qpid.proton.amqp.Symbol JMS_MSG_TYPE
@Deprecated public static final org.apache.qpid.proton.amqp.Symbol JMS_DELIVERY_TIME
public static final org.apache.qpid.proton.amqp.Symbol SCHEDULED_DELIVERY_TIME
public static final org.apache.qpid.proton.amqp.Symbol SCHEDULED_DELIVERY_DELAY
public static final org.apache.qpid.proton.amqp.Symbol ROUTING_TYPE
public static final byte JMS_MESSAGE
public static final byte JMS_OBJECT_MESSAGE
public static final byte JMS_MAP_MESSAGE
public static final byte JMS_BYTES_MESSAGE
public static final byte JMS_STREAM_MESSAGE
public static final byte JMS_TEXT_MESSAGE
public static final org.apache.qpid.proton.amqp.Symbol SERIALIZED_JAVA_OBJECT_CONTENT_TYPE
public static final String JMS_AMQP_PREFIX
public static final int JMS_AMQP_PREFIX_LENGTH
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 DURABLE
public static final String PRIORITY
public static final String DELIVERY_ANNOTATION_PREFIX
public static final String MESSAGE_ANNOTATION_PREFIX
public static final String FOOTER_PREFIX
public static final String ENCODED_PREFIX
public static final String JMS_AMQP_HEADER
public static final String JMS_AMQP_HEADER_DURABLE
public static final String JMS_AMQP_HEADER_PRIORITY
public static final String JMS_AMQP_PROPERTIES
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 String JMS_AMQP_ENCODED_DELIVERY_ANNOTATION_PREFIX
public static final String JMS_AMQP_ENCODED_MESSAGE_ANNOTATION_PREFIX
public static final String JMS_AMQP_ENCODED_FOOTER_PREFIX
public static final String JMS_AMQP_ORIGINAL_ENCODING
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 String X_OPT_PREFIX
public static final String AMQ_PROPERTY_PREFIX
public static final String X_OPT_INGRESS_TIME
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 org.apache.qpid.proton.amqp.Symbol JMS_DEST_TYPE_MSG_ANNOTATION
public static final org.apache.qpid.proton.amqp.Symbol JMS_REPLY_TO_TYPE_MSG_ANNOTATION
public static final org.apache.qpid.proton.amqp.Symbol INGRESS_TIME_MSG_ANNOTATION
public static final byte QUEUE_TYPE
public static final byte TOPIC_TYPE
public static final byte TEMP_QUEUE_TYPE
public static final byte TEMP_TOPIC_TYPE
public static final String OCTET_STREAM_CONTENT_TYPE
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 boolean isContentType(String expected, org.apache.qpid.proton.amqp.Symbol actual)
expected - content type string to compare against or null if not expected to be setactual - the AMQP content type symbol from the Properties sectionpublic static Charset getCharsetForTextualContent(String contentType)
contentType - the contentType of the received messagepublic static CoreBytesMessageWrapper createBytesMessage(long id, CoreMessageObjectPools coreMessageObjectPools)
public static CoreBytesMessageWrapper createBytesMessage(long id, byte[] array, int arrayOffset, int length, CoreMessageObjectPools coreMessageObjectPools)
public static CoreStreamMessageWrapper createStreamMessage(long id, CoreMessageObjectPools coreMessageObjectPools)
public static CoreMessageWrapper createMessage(long id, CoreMessageObjectPools coreMessageObjectPools)
public static CoreTextMessageWrapper createTextMessage(long id, CoreMessageObjectPools coreMessageObjectPools)
public static CoreTextMessageWrapper createTextMessage(long id, String text, CoreMessageObjectPools coreMessageObjectPools)
public static CoreObjectMessageWrapper createObjectMessage(long id, CoreMessageObjectPools coreMessageObjectPools)
public static CoreMessageWrapper createObjectMessage(long id, org.apache.qpid.proton.amqp.Binary serializedForm, CoreMessageObjectPools coreMessageObjectPools)
public static CoreMessageWrapper createObjectMessage(long id, byte[] array, int offset, int length, CoreMessageObjectPools coreMessageObjectPools)
public static CoreMapMessageWrapper createMapMessage(long id, CoreMessageObjectPools coreMessageObjectPools)
public static CoreMapMessageWrapper createMapMessage(long id, Map<String,Object> content, CoreMessageObjectPools coreMessageObjectPools)
public static byte destinationType(String destination)
public static String destination(RoutingType destinationType, String address)
Copyright © 2021 The Apache Software Foundation. All rights reserved.