Package software.xdev.mailpit.model
Class Message
java.lang.Object
software.xdev.mailpit.model.Message
Message data excluding physical attachments
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAttachmentsItem(Attachment attachmentsItem) addBccItem(Address bccItem) addInlineItem(Attachment inlineItem) addReplyToItem(Address replyToItem) addTagsItem(String tagsItem) attachments(List<Attachment> attachments) date(OffsetDateTime date) booleanMessage attachmentsgetBcc()Bcc addressesgetCc()Cc addressesgetDate()Message RFC3339Nano date & time (if set), else date & time received ([extended RFC3339](https://tools.ietf.org/html/rfc3339#section-5.6) format with optional nano seconds)getFrom()Get fromgetHTML()Message body HTMLgetID()Database IDInline message attachmentsGet listUnsubscribeMessage IDReplyTo addressesReturn-PathgetSize()Message size in bytesMessage subjectgetTags()Message tagsgetText()Message body textgetTo()To addressesUsername used for authentication (if provided) with the SMTP or Send APIinthashCode()inline(List<Attachment> inline) listUnsubscribe(ListUnsubscribe listUnsubscribe) returnPath(String returnPath) voidsetAttachments(List<Attachment> attachments) voidvoidvoidsetDate(OffsetDateTime date) voidvoidvoidvoidsetInline(List<Attachment> inline) voidsetListUnsubscribe(ListUnsubscribe listUnsubscribe) voidsetMessageID(String messageID) voidsetReplyTo(List<Address> replyTo) voidsetReturnPath(String returnPath) voidvoidsetSubject(String subject) voidvoidvoidvoidsetUsername(String username) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.
-
Field Details
-
JSON_PROPERTY_ATTACHMENTS
- See Also:
-
JSON_PROPERTY_BCC
- See Also:
-
JSON_PROPERTY_CC
- See Also:
-
JSON_PROPERTY_DATE
- See Also:
-
JSON_PROPERTY_FROM
- See Also:
-
JSON_PROPERTY_H_T_M_L
- See Also:
-
JSON_PROPERTY_I_D
- See Also:
-
JSON_PROPERTY_INLINE
- See Also:
-
JSON_PROPERTY_LIST_UNSUBSCRIBE
- See Also:
-
JSON_PROPERTY_MESSAGE_I_D
- See Also:
-
JSON_PROPERTY_REPLY_TO
- See Also:
-
JSON_PROPERTY_RETURN_PATH
- See Also:
-
JSON_PROPERTY_SIZE
- See Also:
-
JSON_PROPERTY_SUBJECT
- See Also:
-
JSON_PROPERTY_TAGS
- See Also:
-
JSON_PROPERTY_TEXT
- See Also:
-
JSON_PROPERTY_TO
- See Also:
-
JSON_PROPERTY_USERNAME
- See Also:
-
-
Constructor Details
-
Message
public Message()
-
-
Method Details
-
attachments
-
addAttachmentsItem
-
getAttachments
Message attachments- Returns:
- attachments
-
setAttachments
-
bcc
-
addBccItem
-
getBcc
Bcc addresses- Returns:
- bcc
-
setBcc
-
cc
-
addCcItem
-
getCc
Cc addresses- Returns:
- cc
-
setCc
-
date
-
getDate
Message RFC3339Nano date & time (if set), else date & time received ([extended RFC3339](https://tools.ietf.org/html/rfc3339#section-5.6) format with optional nano seconds)- Returns:
- date
-
setDate
-
from
-
getFrom
Get from- Returns:
- from
-
setFrom
-
HTML
-
getHTML
Message body HTML- Returns:
- HTML
-
setHTML
-
ID
-
getID
Database ID- Returns:
- ID
-
setID
-
inline
-
addInlineItem
-
getInline
Inline message attachments- Returns:
- inline
-
setInline
-
listUnsubscribe
-
getListUnsubscribe
Get listUnsubscribe- Returns:
- listUnsubscribe
-
setListUnsubscribe
-
messageID
-
getMessageID
Message ID- Returns:
- messageID
-
setMessageID
-
replyTo
-
addReplyToItem
-
getReplyTo
ReplyTo addresses- Returns:
- replyTo
-
setReplyTo
-
returnPath
-
getReturnPath
Return-Path- Returns:
- returnPath
-
setReturnPath
-
size
-
getSize
Message size in bytes- Returns:
- size
-
setSize
-
subject
-
getSubject
Message subject- Returns:
- subject
-
setSubject
-
tags
-
addTagsItem
-
getTags
Message tags- Returns:
- tags
-
setTags
-
text
-
getText
Message body text- Returns:
- text
-
setText
-
to
-
addToItem
-
getTo
To addresses- Returns:
- to
-
setTo
-
username
-
getUsername
Username used for authentication (if provided) with the SMTP or Send API- Returns:
- username
-
setUsername
-
equals
-
hashCode
public int hashCode() -
toString
-
toUrlQueryString
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
Convert the instance into URL query string.- Parameters:
prefix- prefix of the query string- Returns:
- URL query string
-