@ThreadSafe public final class Message extends Object
Modifier and Type | Field and Description |
---|---|
MessageContext |
mc |
Modifier and Type | Method and Description |
---|---|
String |
content()
A short message summary computed according to
HarvestCache.CHARLIMIT by HarvestUtil.summarize(String) . |
static Message |
create(String content,
String sender,
String archiveUrl,
String path,
List<String> diffUrls,
Date sentDate)
Create a new message including MessageContext.
|
boolean |
equals(Object o) |
int |
hashCode() |
MessageContext |
mc() |
String |
path()
The path from
MessageContext.archiveUrl() to the message. |
String |
toString()
Return context with content and url appended, separated by |.
|
public final MessageContext mc
public MessageContext mc()
public String content()
HarvestCache.CHARLIMIT
by HarvestUtil.summarize(String)
.public String path()
MessageContext.archiveUrl()
to the message.
Together they form the absolute path to the message.public static Message create(String content, String sender, String archiveUrl, String path, List<String> diffUrls, Date sentDate)
content
- calculate this with HarvestUtil.summarize(String)sender
- identity in the mediumarchiveUrl
- path
- diffUrls
- calculate this with
HarvestCache.findDiffUrls(String)sentDate
-