|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mirth.connect.server.userutil.Attachment
public class Attachment
Used to store and retrieve details about message attachments such as the ID, MIME type, and content.
Constructor Summary | |
---|---|
Attachment()
Instantiates a new Attachment with no ID, content, or MIME type. |
|
Attachment(java.lang.String id,
byte[] content,
java.lang.String type)
Instantiates a new Attachment. |
Method Summary | |
---|---|
java.lang.String |
getAttachmentId()
Returns the unique replacement token for the attachment. |
byte[] |
getContent()
Returns the content of the attachment as a byte array. |
byte[] |
getData()
Deprecated. This method is deprecated and will soon be removed. Please use getContent() instead. |
java.lang.String |
getId()
Returns the unique ID for the attachment. |
java.lang.String |
getMessageId()
Deprecated. The Attachment.getMessageId() method is deprecated and will soon be removed. This method always returns an empty string. |
int |
getSize()
Deprecated. This method is deprecated and will soon be removed. Please use getContent().length instead. |
java.lang.String |
getType()
Returns the MIME type of the attachment. |
void |
setAttachmentId(java.lang.String attachmentId)
Deprecated. This method is deprecated and will soon be removed. Please use setId(id) instead. |
void |
setContent(byte[] content)
Sets the content of the attachment. |
void |
setData(byte[] data)
Deprecated. This method is deprecated and will soon be removed. Please use setContent(content) instead. |
void |
setId(java.lang.String id)
Sets the unique ID for the attachment. |
void |
setMessageId(java.lang.String messageId)
Deprecated. The Attachment.setMessageId(messageId) method is deprecated and will soon be removed. This method no longer does anything. |
void |
setSize(int size)
Deprecated. The Attachment.setSize(size) method is deprecated and will soon be removed. This method no longer does anything. |
void |
setType(java.lang.String type)
Sets the MIME type for the attachment. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Attachment()
public Attachment(java.lang.String id, byte[] content, java.lang.String type)
id
- The unique ID of the attachment.content
- The content (byte array) to store for the attachment.type
- The MIME type of the attachment.Method Detail |
---|
public java.lang.String getAttachmentId()
public void setAttachmentId(java.lang.String attachmentId)
attachmentId
- The unique ID to use for the attachment.public java.lang.String getId()
public void setId(java.lang.String id)
id
- The unique ID to use for the attachment.public byte[] getData()
public void setData(byte[] data)
data
- The content (byte array) to use for the attachment.public byte[] getContent()
public void setContent(byte[] content)
content
- The content (byte array) to use for the attachment.public int getSize()
public void setSize(int size)
public java.lang.String getType()
public void setType(java.lang.String type)
type
- The MIME type to set for the attachment.public java.lang.String getMessageId()
public void setMessageId(java.lang.String messageId)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |