@ThreadSafe public final class MessageContext extends Object
Message
,
HarvestCache
Modifier and Type | Method and Description |
---|---|
String |
archiveUrl()
The base-url which acts as a system wide identifier for archives.
|
static MessageContext |
create(String sender,
String archiveUrl,
List<String> diffUrls,
Date sentDate)
Create a context.
|
List<String> |
diffUrls()
Diff-urls detected in this message.
|
boolean |
equals(Object o)
Compares all constructor variables.
|
int |
hashCode()
Obey equals contract.
|
String |
sender()
Sender of the message as known to the medium.
|
Date |
sentDate()
Date the message has been sent due to the archive information.
|
String |
toString()
Prints all constructor variables separated by ":".
|
public static MessageContext create(String sender, String archiveUrl, List<String> diffUrls, Date sentDate)
sender
- , may not be nullarchiveUrl
- , may not be nulldiffUrls
- , may not be null, set through
HarvestCache.findDiffUrls(String)
sentDate
- , may not be nullpublic String sender()
public String archiveUrl()
public List<String> diffUrls()
public Date sentDate()