public class BaseMessage extends Object implements Message
Message interface.
| Constructor and Description |
|---|
BaseMessage() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAllContent(Collection<ContentMessage> contents)
Add several contents to the list contents.
|
void |
addContent(ContentMessage content)
Add new content to the list contents.
|
String |
getAllContentsAsString()
Returns all the contents as one string, separated by '\n'.
|
String |
getAllContentsAsString(String delimiter)
Returns all the contents as one string, separated by a delimiter, which is set up in the parameter.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAttachments, getContents, getId, getReceivedDate, getRecipients, getSender, getSentDate, getSize, getSubject, getTransferEncoder, isSeenpublic void addContent(ContentMessage content)
public void addAllContent(Collection<ContentMessage> contents)
public String getAllContentsAsString()
public String getAllContentsAsString(String delimiter)
Copyright © 2023. All rights reserved.