Package com.azure.core.amqp.models
Class AmqpAnnotatedMessage
java.lang.Object
com.azure.core.amqp.models.AmqpAnnotatedMessage
The representation of message as defined by AMQP protocol.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets theMapof application properties.getBody()Gets theAmqpMessageBodyof an amqp message.Gets theMaprepresentation of delivery annotations defined on an amqp message.Gets theMaprepresentation of footer defined on an amqp message.Gets theAmqpMessageHeaderdefined on an amqp message.Gets theMaprepresentation of message annotations defined on an amqp message.Gets theAmqpMessagePropertiesdefined on an amqp message.
-
Constructor Details
-
AmqpAnnotatedMessage
Creates instance ofAmqpAnnotatedMessagewith givenAmqpMessageBody.- Parameters:
body- to be set on amqp message.- Throws:
NullPointerException- ifbodyis null.
-
-
Method Details
-
getApplicationProperties
Gets theMapof application properties.- Returns:
- The application properties.
-
getBody
Gets theAmqpMessageBodyof an amqp message.- Returns:
- the
AmqpMessageBodyobject. - See Also:
-
getDeliveryAnnotations
Gets theMaprepresentation of delivery annotations defined on an amqp message.- Returns:
- the
Maprepresentation of delivery annotations.
-
getHeader
Gets theAmqpMessageHeaderdefined on an amqp message.- Returns:
- the
AmqpMessageHeaderobject.
-
getMessageAnnotations
Gets theMaprepresentation of message annotations defined on an amqp message.- Returns:
- the
Maprepresentation of message annotations.
-
getProperties
Gets theAmqpMessagePropertiesdefined on an amqp message.- Returns:
- the
AmqpMessagePropertiesobject.
-