public class

MailMessage

extends Object
implements Serializable
java.lang.Object
   ↳ org.mule.module.gmail.model.MailMessage

Class Overview

Simple pojo representing an email message. Its main purpose is to decouple the user from the internals and dependencies of the IMAP/SMPT protocols

Summary

Constants
long serialVersionUID
Fields
private List<Attachment> attachments
private List<String> bcc
private String body
private List<String> cc
private String from
private String googleId
private String[] labels
private String subject
private Long threadId
private Date timestamp
private List<String> to
Public Constructors
MailMessage()
Public Methods
MailMessage addAttachment(Attachment attach)
List<Attachment> getAttachments()
List<String> getBcc()
String getBody()
List<String> getCc()
String getFrom()
String getGoogleId()
String[] getLabels()
String getSubject()
Long getThreadId()
Date getTimestamp()
List<String> getTo()
void setAttachments(List<Attachment> attachments)
void setBcc(List<String> bcc)
void setBody(String body)
void setCc(List<String> cc)
void setFrom(String from)
void setGoogleId(String googleId)
void setLabels(String[] labels)
void setSubject(String subject)
void setThreadId(Long threadId)
void setTimestamp(Date timestamp)
void setTo(List<String> to)
[Expand]
Inherited Methods
From class java.lang.Object

Constants

private static final long serialVersionUID

Constant Value: 9075515272267884164 (0x7df2b50e5528e684)

Fields

private List<Attachment> attachments

private List<String> bcc

private String body

private List<String> cc

private String from

private String googleId

private String[] labels

private String subject

private Long threadId

private Date timestamp

private List<String> to

Public Constructors

public MailMessage ()

Public Methods

public MailMessage addAttachment (Attachment attach)

Parameters
attach

public List<Attachment> getAttachments ()

public List<String> getBcc ()

public String getBody ()

public List<String> getCc ()

public String getFrom ()

public String getGoogleId ()

public String[] getLabels ()

public String getSubject ()

public Long getThreadId ()

public Date getTimestamp ()

public List<String> getTo ()

public void setAttachments (List<Attachment> attachments)

Parameters
attachments

public void setBcc (List<String> bcc)

Parameters
bcc

public void setBody (String body)

Parameters
body

public void setCc (List<String> cc)

Parameters
cc

public void setFrom (String from)

Parameters
from

public void setGoogleId (String googleId)

Parameters
googleId

public void setLabels (String[] labels)

Parameters
labels

public void setSubject (String subject)

Parameters
subject

public void setThreadId (Long threadId)

Parameters
threadId

public void setTimestamp (Date timestamp)

Parameters
timestamp

public void setTo (List<String> to)

Parameters
to