public class DirectMessage extends Object
| Constructor and Description |
|---|
DirectMessage(String sender,
Collection<String> receivers)
Create a new DirectMessage object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDocument(DirectDocument2 document) |
void |
addDocument(File file)
Deprecated.
|
String |
getBody()
Get the value of body.
|
DirectDocuments |
getDirectDocuments() |
Collection<String> |
getReceivers()
Get the value of receivers.
|
String |
getSender()
Get the value of sender.
|
String |
getSubject()
Get the value of subject.
|
void |
setBody(String body)
Set the value of body.
|
void |
setDirectDocuments(DirectDocuments directDocuments) |
void |
setReceivers(Collection<String> receivers)
Set the value of receivers.
|
void |
setSender(String sender)
Set the value of sender.
|
void |
setSubject(String subject)
Set the value of subject.
|
public DirectMessage(String sender, Collection<String> receivers)
sender - The value of sender.receivers - The value of receivers.@Deprecated public void addDocument(File file) throws Exception
document - The document to add.Exceptionpublic void addDocument(DirectDocument2 document)
public String getSender()
public void setSender(String sender)
sender - The value of sender.public Collection<String> getReceivers()
public void setReceivers(Collection<String> receivers)
receivers - The value of receivers.public String getBody()
public void setBody(String body)
body - The body to set.public void setSubject(String subject)
subject - The subject to set.public String getSubject()
public DirectDocuments getDirectDocuments()
public void setDirectDocuments(DirectDocuments directDocuments)
directDocuments - the directDocuments to setCopyright © 2010–2025. All rights reserved.