Package com.azure.core.amqp.models
Class AmqpAnnotatedMessage
- java.lang.Object
-
- com.azure.core.amqp.models.AmqpAnnotatedMessage
-
public final class AmqpAnnotatedMessage extends Object
The representation of message as defined by AMQP protocol.- See Also:
-
Amqp Message Format,
AmqpMessageBody
-
-
Constructor Summary
Constructors Constructor Description AmqpAnnotatedMessage(AmqpMessageBody body)Creates instance ofAmqpAnnotatedMessagewith givenAmqpMessageBody.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>getApplicationProperties()Gets theMapof application properties.AmqpMessageBodygetBody()Gets theAmqpMessageBodyof an amqp message.Map<String,Object>getDeliveryAnnotations()Gets theMaprepresentation of delivery annotations defined on an amqp message.Map<String,Object>getFooter()Gets theMaprepresentation of footer defined on an amqp message.AmqpMessageHeadergetHeader()Gets theAmqpMessageHeaderdefined on an amqp message.Map<String,Object>getMessageAnnotations()Gets theMaprepresentation of message annotations defined on an amqp message.AmqpMessagePropertiesgetProperties()Gets theAmqpMessagePropertiesdefined on an amqp message.
-
-
-
Constructor Detail
-
AmqpAnnotatedMessage
public AmqpAnnotatedMessage(AmqpMessageBody body)
Creates instance ofAmqpAnnotatedMessagewith givenAmqpMessageBody.- Parameters:
body- to be set on amqp message.- Throws:
NullPointerException- ifbodyis null.
-
-
Method Detail
-
getApplicationProperties
public Map<String,Object> getApplicationProperties()
Gets theMapof application properties.- Returns:
- The application properties.
-
getBody
public AmqpMessageBody getBody()
Gets theAmqpMessageBodyof an amqp message.- Returns:
- the
AmqpMessageBodyobject. - See Also:
AmqpMessageBody
-
getDeliveryAnnotations
public Map<String,Object> getDeliveryAnnotations()
Gets theMaprepresentation of delivery annotations defined on an amqp message.- Returns:
- the
Maprepresentation of delivery annotations.
-
getFooter
public Map<String,Object> getFooter()
Gets theMaprepresentation of footer defined on an amqp message.- Returns:
- the
Maprepresentation of footer.
-
getHeader
public AmqpMessageHeader getHeader()
Gets theAmqpMessageHeaderdefined on an amqp message.- Returns:
- the
AmqpMessageHeaderobject.
-
getMessageAnnotations
public Map<String,Object> getMessageAnnotations()
Gets theMaprepresentation of message annotations defined on an amqp message.- Returns:
- the
Maprepresentation of message annotations.
-
getProperties
public AmqpMessageProperties getProperties()
Gets theAmqpMessagePropertiesdefined on an amqp message.- Returns:
- the
AmqpMessagePropertiesobject.
-
-