Class ClientMessage<E>
- Type Parameters:
- E- the body type that the- Messagecarries
- All Implemented Interfaces:
- AdvancedMessage<E>,- Message<E>
AdvancedMessage implementation that is used when sending messages
 from a ClientSender or when decoding an AMQP Transfer for which all frames have
 arrived.- 
Method SummaryModifier and TypeMethodDescriptionlongabsoluteExpiryTime(long expiryTime) Sets the absolute expiration time value to assign to thisMessage.addBodySection(Section<?> bodySection) Adds the givenSectionto the internal collection of sections that will be sent to the remote peer when this message is encoded.annotation(String key) Returns the requested message annotation value from thisMessageif it exists or returns null otherwise.annotation(String key, Object value) Sets the given message annotation value at the given key, replacing any previous value that was assigned to thisMessage.Return the currentMessageAnnotationsassigned to this message, if none was assigned yet then this method returnsnull.annotations(MessageAnnotations messageAnnotations) Assign or replace theMessageAnnotationsinstance associated with this message.Return the currentApplicationPropertiesassigned to this message, if none was assigned yet then this method returnsnull.applicationProperties(ApplicationProperties applicationProperties) Assign or replace theApplicationPropertiesinstance associated with this message.body()Returns the body value that is conveyed in this message or null if no body was set locally or sent from the remote if this is an incoming message.Sets the body value that is to be conveyed to the remote when this message is sent.Collection<Section<?>>Create and return an unmodifiableCollectionthat contains theSectioninstances currently assigned to this message.bodySections(Collection<Section<?>> sections) Sets the bodySectioninstances to use when encoding this message.Clears all current bodySectionelements from theAdvancedMessage.contentEncoding(String contentEncoding) Sets the contentEncoding value to assign to thisMessage.contentType(String contentType) Sets the contentType value to assign to thisMessage.correlationId(Object correlationId) Sets the correlationId value to assign to thisMessage.static <V> ClientMessage<V>create()Creates an emptyClientMessageinstance.static <V> ClientMessage<V>Creates anClientMessageinstance with the given bodySectionvalue.static <V> ClientMessage<V>Creates an emptyClientMessageinstance.longcreationTime(long createTime) Sets the creation time value to assign to thisMessage.longdeliveryCount(long deliveryCount) Sets the value to assign to the delivery count field of thisMessage.booleandurable()For an message being sent this method returns the current state of the durable flag on the message.durable(boolean durable) Controls if the message is marked as durable when sent.encode(Map<String, Object> deliveryAnnotations, ProtonBufferAllocator allocator) Encodes theAdvancedMessagefor transmission by the client.booleanfirstAcquirer(boolean firstAcquirer) Sets the value to assign to the first acquirer field of thisMessage.footer()Return the currentFooterassigned to this message, if none was assigned yet then this method returnsnull.Returns the requested footer value from thisMessageif it exists or returnsnullotherwise.Sets the given footer value at the given key, replacing any previous value that was assigned to thisMessage.Assign or replace theFooterinstance associated with this message.forEachAnnotation(BiConsumer<String, Object> action) Invokes the givenBiConsumeron each message annotation entry carried in thisMessage.forEachBodySection(Consumer<Section<?>> consumer) Performs the given action for each bodySectionof theAdvancedMessageuntil all sections have been presented to the givenConsumeror the consumer throws an exception.forEachFooter(BiConsumer<String, Object> action) Invokes the givenBiConsumeron each footer entry carried in thisMessage.forEachProperty(BiConsumer<String, Object> action) Invokes the givenBiConsumeron each application property entry carried in thisMessage.groupId()Sets the groupId value to assign to thisMessage.intgroupSequence(int groupSequence) Sets the group sequence value to assign to thisMessage.booleanhasAnnotation(String key) Query theMessageto determine if it carries the given message annotation key.booleanQuery theMessageto determine if it carries any message annotations.booleanQuery theMessageto determine if it carries the given footer key.booleanQuery theMessageto determine if it carries any footers.booleanQuery theMessageto determine if it carries any application properties.booleanhasProperty(String key) Query theMessageto determine if it carries the given application property key.header()Return the currentHeaderassigned to this message, if none was assigned yet then this method returnsnull.Assign or replace theHeaderinstance associated with this message.intmessageFormat(int messageFormat) Sets the message format to use when the message is sent.Sets the message Id value to assign to thisMessage.bytepriority()priority(byte priority) Sets the relative message priority.Return the currentPropertiesassigned to this message, if none was assigned yet then this method returnsnull.properties(Properties properties) Assign or replace thePropertiesinstance associated with this message.Returns the requested application property value from thisMessageif it exists or returns null otherwise.Sets the given application property value at the given key, replacing any previous value that was assigned to thisMessage.removeAnnotation(String key) Removes the given message annotation from the values carried in the message currently, if none was present than this method returnsnull.removeFooter(String key) Removes the given footer from the values carried in the message currently, if none was present than this method returnsnull.removeProperty(String key) Removes the given application property from the values carried in the message currently, if none was present than this method returnsnull.replyTo()Sets the replyTo value to assign to thisMessage.replyToGroupId(String replyToGroupId) Sets the replyTo group Id value to assign to thisMessage.subject()Sets the subject value to assign to thisMessage.longtimeToLive(long timeToLive) Sets the message time to live value.to()Sets the 'to' value to assign to thisMessage.Safely convert thisMessageinstance into anAdvancedMessagereference which can offer more low level APIs to an experienced client user.byte[]userId()userId(byte[] userId) Sets the user Id value to assign to thisMessage.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.qpid.protonj2.client.AdvancedMessageencode
- 
Method Details- 
toAdvancedMessageDescription copied from interface:MessageSafely convert thisMessageinstance into anAdvancedMessagereference which can offer more low level APIs to an experienced client user.The default implementation first checks if the current instance is already of the correct type before performing a brute force conversion of the current message to the client's own internal AdvancedMessageimplementation. Users should override this method if the internal conversion implementation is insufficient to obtain the proper message structure to encode a meaningful 'on the wire' encoding of their custom implementation.- Specified by:
- toAdvancedMessagein interface- Message<E>
- Returns:
- a AdvancedMessagethat contains this message's current state.
 
- 
createCreates an emptyClientMessageinstance.- Type Parameters:
- V- The type of the body value carried in this message.
- Returns:
- a new empty ClientMessageinstance.
 
- 
createCreates anClientMessageinstance with the given bodySectionvalue.- Type Parameters:
- V- The type of the body value carried in this message body section.
- Parameters:
- body- The body- Sectionto assign to the created message instance.
- Returns:
- a new ClientMessageinstance with the given body.
 
- 
createAdvancedMessageCreates an emptyClientMessageinstance.- Type Parameters:
- V- The type of the body value carried in this message.
- Returns:
- a new empty ClientMessageinstance.
 
- 
durablepublic boolean durable()Description copied from interface:MessageFor an message being sent this method returns the current state of the durable flag on the message. For a received message this method returns the durable flag value at the time of sending (or false if not set) unless the value is updated after being received by the receiver.
- 
durableDescription copied from interface:MessageControls if the message is marked as durable when sent.
- 
prioritypublic byte priority()
- 
priorityDescription copied from interface:MessageSets the relative message priority. Higher numbers indicate higher priority messages. Messages with higher priorities MAY be delivered before those with lower priorities. For a received message this overwrites any value that was set by the remote sender.
- 
timeToLivepublic long timeToLive()- Specified by:
- timeToLivein interface- Message<E>
- Returns:
- the currently set Time To Live duration (milliseconds).
 
- 
timeToLiveDescription copied from interface:MessageSets the message time to live value.The time to live duration in milliseconds for which the message is to be considered "live". If this is set then a message expiration time will be computed based on the time of arrival at an intermediary. Messages that live longer than their expiration time will be discarded (or dead lettered). When a message is transmitted by an intermediary that was received with a time to live, the transmitted message's header SHOULD contain a time to live that is computed as the difference between the current time and the formerly computed message expiration time, i.e., the reduced time to live, so that messages will eventually die if they end up in a delivery loop. - Specified by:
- timeToLivein interface- Message<E>
- Parameters:
- timeToLive- The time span in milliseconds that this message should remain live before being discarded.
- Returns:
- this Messageinstance.
 
- 
firstAcquirerpublic boolean firstAcquirer()- Specified by:
- firstAcquirerin interface- Message<E>
- Returns:
- if this message has been acquired by another link previously
 
- 
firstAcquirerDescription copied from interface:MessageSets the value to assign to the first acquirer field of thisMessage.If this value is true, then this message has not been acquired by any other link. If this value is false, then this message MAY have previously been acquired by another link or links. - Specified by:
- firstAcquirerin interface- Message<E>
- Parameters:
- firstAcquirer- The boolean value to assign to the first acquirer field of the message.
- Returns:
- this Messageinstance.
 
- 
deliveryCountpublic long deliveryCount()- Specified by:
- deliveryCountin interface- Message<E>
- Returns:
- the number of failed delivery attempts that this message has been part of.
 
- 
deliveryCountDescription copied from interface:MessageSets the value to assign to the delivery count field of thisMessage.Delivery count is the number of unsuccessful previous attempts to deliver this message. If this value is non-zero it can be taken as an indication that the delivery might be a duplicate. On first delivery, the value is zero. It is incremented upon an outcome being settled at the sender, according to rules defined for each outcome. - Specified by:
- deliveryCountin interface- Message<E>
- Parameters:
- deliveryCount- The new delivery count value to assign to this message.
- Returns:
- this Messageinstance.
 
- 
messageId
- 
messageIdDescription copied from interface:MessageSets the message Id value to assign to thisMessage.The message Id, if set, uniquely identifies a message within the message system. The message producer is usually responsible for setting the message-id in such a way that it is assured to be globally unique. A remote peer MAY discard a message as a duplicate if the value of the message-id matches that of a previously received message sent to the same node. 
- 
userIdpublic byte[] userId()
- 
userIdDescription copied from interface:MessageSets the user Id value to assign to thisMessage.The identity of the user responsible for producing the message. The client sets this value, and it MAY be authenticated by intermediaries. 
- 
to
- 
toDescription copied from interface:MessageSets the 'to' value to assign to thisMessage.The to field identifies the node that is the intended destination of the message. On any given transfer this might not be the node at the receiving end of the link. 
- 
subject
- 
subjectDescription copied from interface:MessageSets the subject value to assign to thisMessage.A common field for summary information about the message content and purpose. 
- 
replyTo
- 
replyToDescription copied from interface:MessageSets the replyTo value to assign to thisMessage.The address of the node to send replies to. 
- 
correlationId- Specified by:
- correlationIdin interface- Message<E>
- Returns:
- the currently assigned correlation ID or null if none set.
 
- 
correlationIdDescription copied from interface:MessageSets the correlationId value to assign to thisMessage.This is a client-specific id that can be used to mark or identify messages between clients. - Specified by:
- correlationIdin interface- Message<E>
- Parameters:
- correlationId- The correlationId value to assign to this- Messageinstance.
- Returns:
- this Messageinstance.
 
- 
contentType- Specified by:
- contentTypein interface- Message<E>
- Returns:
- the assigned content type value for the message body section or null if not set.
 
- 
contentTypeDescription copied from interface:MessageSets the contentType value to assign to thisMessage.The RFC-2046 MIME type for the message's application-data section (body). As per RFC-2046 this can contain a charset parameter defining the character encoding used: e.g., 'text/plain; charset="utf-8"'. For clarity, as per section 7.2.1 of RFC-2616, where the content type is unknown the content-type SHOULD NOT be set. This allows the recipient the opportunity to determine the actual type. Where the section is known to be truly opaque binary data, the content-type SHOULD be set to application/octet-stream. When using an application-data section with a section code other than data, content-type SHOULD NOT be set. - Specified by:
- contentTypein interface- Message<E>
- Parameters:
- contentType- The contentType value to assign to this- Messageinstance.
- Returns:
- this Messageinstance.
 
- 
contentEncoding- Specified by:
- contentEncodingin interface- Message<E>
- Returns:
- the assigned content encoding value for the message body section or null if not set.
 
- 
contentEncodingDescription copied from interface:MessageSets the contentEncoding value to assign to thisMessage.The content-encoding property is used as a modifier to the content-type. When present, its value indicates what additional content encodings have been applied to the application-data, and thus what decoding mechanisms need to be applied in order to obtain the media-type referenced by the content-type header field. Content-encoding is primarily used to allow a document to be compressed without losing the identity of its underlying content type. Content-encodings are to be interpreted as per section 3.5 of RFC 2616 [RFC2616]. Valid content-encodings are registered at IANA [IANAHTTPPARAMS]. The content-encoding MUST NOT be set when the application-data section is other than data. The binary representation of all other application-data section types is defined completely in terms of the AMQP type system. Implementations MUST NOT use the identity encoding. Instead, implementations SHOULD NOT set this property. Implementations SHOULD NOT use the compress encoding, except as to remain compatible with messages originally sent with other protocols, e.g. HTTP or SMTP. Implementations SHOULD NOT specify multiple content-encoding values except as to be compatible with messages originally sent with other protocols, e.g. HTTP or SMTP. - Specified by:
- contentEncodingin interface- Message<E>
- Parameters:
- contentEncoding- The contentEncoding value to assign to this- Messageinstance.
- Returns:
- this Messageinstance.
 
- 
absoluteExpiryTimepublic long absoluteExpiryTime()- Specified by:
- absoluteExpiryTimein interface- Message<E>
- Returns:
- the configured absolute time of expiration for this message.
 
- 
absoluteExpiryTimeDescription copied from interface:MessageSets the absolute expiration time value to assign to thisMessage.An absolute time when this message is considered to be expired. - Specified by:
- absoluteExpiryTimein interface- Message<E>
- Parameters:
- expiryTime- The absolute expiration time value to assign to this- Messageinstance.
- Returns:
- this Messageinstance.
 
- 
creationTimepublic long creationTime()- Specified by:
- creationTimein interface- Message<E>
- Returns:
- the absolute time of creation for this message.
 
- 
creationTimeDescription copied from interface:MessageSets the creation time value to assign to thisMessage.An absolute time when this message was created. - Specified by:
- creationTimein interface- Message<E>
- Parameters:
- createTime- The creation time value to assign to this- Messageinstance.
- Returns:
- this Messageinstance.
 
- 
groupId
- 
groupIdDescription copied from interface:MessageSets the groupId value to assign to thisMessage.Identifies the group the message belongs to. 
- 
groupSequencepublic int groupSequence()- Specified by:
- groupSequencein interface- Message<E>
- Returns:
- the assigned group sequence for this message.
 
- 
groupSequenceDescription copied from interface:MessageSets the group sequence value to assign to thisMessage.The relative position of this message within its group. - Specified by:
- groupSequencein interface- Message<E>
- Parameters:
- groupSequence- The group sequence to assign to this- Messageinstance.
- Returns:
- this Messageinstance.
 
- 
replyToGroupId- Specified by:
- replyToGroupIdin interface- Message<E>
- Returns:
- the client-specific id used so that client can send replies to this message to a specific group.
 
- 
replyToGroupIdDescription copied from interface:MessageSets the replyTo group Id value to assign to thisMessage.This is a client-specific id that is used so that client can send replies to this message to a specific group. - Specified by:
- replyToGroupIdin interface- Message<E>
- Parameters:
- replyToGroupId- The replyTo group Id to assign to this- Messageinstance.
- Returns:
- this Messageinstance.
 
- 
annotationDescription copied from interface:MessageReturns the requested message annotation value from thisMessageif it exists or returns null otherwise.- Specified by:
- annotationin interface- Message<E>
- Parameters:
- key- The key of the message annotation to query for.
- Returns:
- the corresponding message annotation value of null if none was carried in this Message.
 
- 
hasAnnotationDescription copied from interface:MessageQuery theMessageto determine if it carries the given message annotation key.- Specified by:
- hasAnnotationin interface- Message<E>
- Parameters:
- key- The key of the message annotation to query for.
- Returns:
- trueif the Message carries the given message annotation.
 
- 
hasAnnotationspublic boolean hasAnnotations()Description copied from interface:MessageQuery theMessageto determine if it carries any message annotations.- Specified by:
- hasAnnotationsin interface- Message<E>
- Returns:
- trueif the Message carries any message annotations.
 
- 
removeAnnotationDescription copied from interface:MessageRemoves the given message annotation from the values carried in the message currently, if none was present than this method returnsnull.- Specified by:
- removeAnnotationin interface- Message<E>
- Parameters:
- key- The key of the message annotation to query for removal.
- Returns:
- the message annotation value that was previously assigned to that key.
 
- 
forEachAnnotationDescription copied from interface:MessageInvokes the givenBiConsumeron each message annotation entry carried in thisMessage.- Specified by:
- forEachAnnotationin interface- Message<E>
- Parameters:
- action- The action that will be invoked on each message annotation entry.
- Returns:
- this Messageinstance.
 
- 
annotationDescription copied from interface:MessageSets the given message annotation value at the given key, replacing any previous value that was assigned to thisMessage.- Specified by:
- annotationin interface- Message<E>
- Parameters:
- key- The message annotation key where the value is to be assigned.
- value- The value to assign to the given message annotation key.
- Returns:
- this Messageinstance.
 
- 
propertyDescription copied from interface:MessageReturns the requested application property value from thisMessageif it exists or returns null otherwise.
- 
hasPropertyDescription copied from interface:MessageQuery theMessageto determine if it carries the given application property key.- Specified by:
- hasPropertyin interface- Message<E>
- Parameters:
- key- The key of the application property to query for.
- Returns:
- trueif the Message carries the given application property.
 
- 
hasPropertiespublic boolean hasProperties()Description copied from interface:MessageQuery theMessageto determine if it carries any application properties.- Specified by:
- hasPropertiesin interface- Message<E>
- Returns:
- trueif the Message carries any application properties.
 
- 
removePropertyDescription copied from interface:MessageRemoves the given application property from the values carried in the message currently, if none was present than this method returnsnull.- Specified by:
- removePropertyin interface- Message<E>
- Parameters:
- key- The key of the application property to query for removal.
- Returns:
- the application property value that was previously assigned to that key.
 
- 
forEachPropertyDescription copied from interface:MessageInvokes the givenBiConsumeron each application property entry carried in thisMessage.- Specified by:
- forEachPropertyin interface- Message<E>
- Parameters:
- action- The action that will be invoked on each application property entry.
- Returns:
- this Messageinstance.
 
- 
propertyDescription copied from interface:MessageSets the given application property value at the given key, replacing any previous value that was assigned to thisMessage.
- 
bodyDescription copied from interface:MessageReturns the body value that is conveyed in this message or null if no body was set locally or sent from the remote if this is an incoming message.
- 
bodyDescription copied from interface:Message
- 
headerDescription copied from interface:AdvancedMessageReturn the currentHeaderassigned to this message, if none was assigned yet then this method returnsnull.- Specified by:
- headerin interface- AdvancedMessage<E>
- Returns:
- the currently assigned Headerfor this message.
 
- 
headerDescription copied from interface:AdvancedMessageAssign or replace theHeaderinstance associated with this message.- Specified by:
- headerin interface- AdvancedMessage<E>
- Parameters:
- header- The- Headervalue to assign to this message.
- Returns:
- this AdvancedMessageinstance.
 
- 
annotationsDescription copied from interface:AdvancedMessageReturn the currentMessageAnnotationsassigned to this message, if none was assigned yet then this method returnsnull.- Specified by:
- annotationsin interface- AdvancedMessage<E>
- Returns:
- the currently assigned MessageAnnotationsfor this message.
 
- 
annotationsDescription copied from interface:AdvancedMessageAssign or replace theMessageAnnotationsinstance associated with this message.- Specified by:
- annotationsin interface- AdvancedMessage<E>
- Parameters:
- messageAnnotations- The- MessageAnnotationsvalue to assign to this message.
- Returns:
- this AdvancedMessageinstance.
 
- 
propertiesDescription copied from interface:AdvancedMessageReturn the currentPropertiesassigned to this message, if none was assigned yet then this method returnsnull.- Specified by:
- propertiesin interface- AdvancedMessage<E>
- Returns:
- the currently assigned Propertiesfor this message.
 
- 
propertiesDescription copied from interface:AdvancedMessageAssign or replace thePropertiesinstance associated with this message.- Specified by:
- propertiesin interface- AdvancedMessage<E>
- Parameters:
- properties- The- Propertiesvalue to assign to this message.
- Returns:
- this AdvancedMessageinstance.
 
- 
applicationPropertiesDescription copied from interface:AdvancedMessageReturn the currentApplicationPropertiesassigned to this message, if none was assigned yet then this method returnsnull.- Specified by:
- applicationPropertiesin interface- AdvancedMessage<E>
- Returns:
- the currently assigned ApplicationPropertiesfor this message.
 
- 
applicationPropertiesDescription copied from interface:AdvancedMessageAssign or replace theApplicationPropertiesinstance associated with this message.- Specified by:
- applicationPropertiesin interface- AdvancedMessage<E>
- Parameters:
- applicationProperties- The- ApplicationPropertiesvalue to assign to this message.
- Returns:
- this AdvancedMessageinstance.
 
- 
messageFormatpublic int messageFormat()- Specified by:
- messageFormatin interface- AdvancedMessage<E>
- Returns:
- the currently assigned message format for this message.
 
- 
messageFormatDescription copied from interface:AdvancedMessageSets the message format to use when the message is sent. The exact structure of a message, together with its encoding, is defined by the message format (default is the AMQP defined message format zero.This field MUST be specified for the first transfer of a multi-transfer message, if it is not set at the time of send of the first transfer the sender uses the AMQP default value of zero for this field. The upper three octets of a message format code identify a particular message format. The lowest octet indicates the version of said message format. Any given version of a format is forwards compatible with all higher versions. 3 octets 1 octet +----------------+---------+ | message format | version | +----------------+---------+ | | msb lsb- Specified by:
- messageFormatin interface- AdvancedMessage<E>
- Parameters:
- messageFormat- The message format to encode into the transfer frame that carries the message.
- Returns:
- this AdvancedMessageinstance.
 
- 
encodepublic ProtonBuffer encode(Map<String, Object> deliveryAnnotations, ProtonBufferAllocator allocator) throws ClientExceptionDescription copied from interface:AdvancedMessageEncodes theAdvancedMessagefor transmission by the client. The providedDeliveryAnnotationscan be included or augmented by theAdvancedMessageimplementation based on the target message format. The implementation is responsible for ensuring that the delivery annotations are treated correctly encoded into the correct location in the message.- Specified by:
- encodein interface- AdvancedMessage<E>
- Parameters:
- deliveryAnnotations- A- Mapof delivery annotation values that were requested to be included in the transmitted message.
- allocator- An allocator that should be used to create the buffer the message is encoded into.
- Returns:
- the encoded form of this message in a ProtonBufferinstance.
- Throws:
- ClientException- if an error occurs while encoding the message data.
 
- 
addBodySectionDescription copied from interface:AdvancedMessageAdds the givenSectionto the internal collection of sections that will be sent to the remote peer when this message is encoded. If a previous section was added by a call to theMessage.body(Object)method it should be retained as the first element of the running list of body sections contained in this message.The implementation should make an attempt to validate that sections added are valid for the message format that is assigned when they are added. - Specified by:
- addBodySectionin interface- AdvancedMessage<E>
- Parameters:
- bodySection- The- Sectioninstance to append to the internal collection.
- Returns:
- this AdvancedMessageinstance.
 
- 
bodySectionsDescription copied from interface:AdvancedMessageSets the bodySectioninstances to use when encoding this message. The value given replaces any existing sections assigned to this message through theMessage.body(Object)orAdvancedMessage.addBodySection(Section)methods. Calling this method with a null or empty collection is equivalent to calling theAdvancedMessage.clearBodySections()method.- Specified by:
- bodySectionsin interface- AdvancedMessage<E>
- Parameters:
- sections- The- Collectionof- Sectioninstance to assign this message.
- Returns:
- this AdvancedMessageinstance.
 
- 
bodySectionsDescription copied from interface:AdvancedMessageCreate and return an unmodifiableCollectionthat contains theSectioninstances currently assigned to this message. Changes to this message body after calling this will not be reflected in the returned collection.- Specified by:
- bodySectionsin interface- AdvancedMessage<E>
- Returns:
- an unmodifiable Collectionthat is a view of the current sections assigned to this message.
 
- 
forEachBodySectionDescription copied from interface:AdvancedMessagePerforms the given action for each bodySectionof theAdvancedMessageuntil all sections have been presented to the givenConsumeror the consumer throws an exception.- Specified by:
- forEachBodySectionin interface- AdvancedMessage<E>
- Parameters:
- consumer- the- Consumerthat will operate on each of the body sections in this message.
- Returns:
- this AdvancedMessageinstance.
 
- 
clearBodySectionsDescription copied from interface:AdvancedMessageClears all current bodySectionelements from theAdvancedMessage.- Specified by:
- clearBodySectionsin interface- AdvancedMessage<E>
- Returns:
- this AdvancedMessageinstance.
 
 
-