public class EmailAttachmentData extends APIBean
| Constructor and Description |
|---|
EmailAttachmentData()
Default Constructor
|
EmailAttachmentData(byte[] data,
long size,
java.lang.String fileName,
java.lang.String mimeType,
java.lang.String referenceUrl)
Constructor with fields
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getData()
Returns the raw data in byte[]
|
java.lang.String |
getFileName()
Returns the filename of the attachment
|
java.lang.String |
getMimeType()
Returns the mime type of the attachment
|
java.lang.String |
getReferenceUrl()
Returns the absolute url of the file attachment
|
long |
getSize()
Returns the size of the attachment as a long
|
void |
setData(byte[] data)
Set the data of the attachment as a byte[]
|
void |
setFileName(java.lang.String fileName)
Set the name of the file attachment
|
void |
setMimeType(java.lang.String mimeType)
Set the mime type of the attachment
|
void |
setReferenceUrl(java.lang.String referenceUrl)
Set the absolute url of the attachment
|
void |
setSize(long size)
Set the size of the attachment as a long
|
public EmailAttachmentData()
public EmailAttachmentData(byte[] data,
long size,
java.lang.String fileName,
java.lang.String mimeType,
java.lang.String referenceUrl)
data - raw data of the file attachmentsize - size of the file attachmentfileName - name of the file attachmentmimeType - mime type of the file attachmentreferenceUrl - relative url of the file attachmentpublic byte[] getData()
public void setData(byte[] data)
data - Sets the octet-binary content of the attachment.public java.lang.String getFileName()
public void setFileName(java.lang.String fileName)
fileName - Name of the attachment.public java.lang.String getMimeType()
public void setMimeType(java.lang.String mimeType)
mimeType - Mime-type of the attachment.public java.lang.String getReferenceUrl()
public void setReferenceUrl(java.lang.String referenceUrl)
referenceUrl - Absolute URL of the file attachment for either file:// or http:// access.public long getSize()
public void setSize(long size)
size - Length in bytes of the octet-binary content ( should be same as data array length.)