|
Collaboration API Documentation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.filenet.bso.api.collaboration.data.EmailSubpartInfo
This class encapsulates the data of a single subpart of an email message. Each subpart
corresponds to one of the lower-level JavaMail MimePart
class, which is part of
the whole MimeMessage
, but will not include MimeMultipart
parts.
These subparts might be textual (MIME type text/-), inline (usually MIME type image/- or
sound/-) or attachments (any non-multipart MIME type).
Constructor Summary | |
EmailSubpartInfo(Teamspace teamspace,
java.lang.String ownerID,
java.lang.String contentType,
java.lang.String filename,
byte[] bytes,
int elemNumber)
Alternate constructor used when not basing the subpart off of a MimePart object. |
Method Summary | |
byte[] |
getBytes()
Fetch the content byte array. |
com.filenet.wcm.api.TransportInputStream |
getContent()
Return an input stream for the content of this subpart. |
java.lang.String |
getContentID()
Get the Content-Id: header for this part. |
java.lang.String |
getContentLocation()
Get the Content-Location: header for this part. |
java.lang.String |
getContentType()
Get the type/subtype MIME type for this subpart. |
int |
getElemNumber()
Get the element number for this part. |
java.lang.String |
getFilename()
Get the "best guess" filename for this subpart. |
java.lang.String |
getOwnerID()
Get the member ID for whoever's creating this email subpart. |
com.filenet.wcm.api.Properties |
getProperties(com.filenet.wcm.api.Document parent)
Get the properties that are associated with this subpart. |
Teamspace |
getTeamspace()
Get the teamspace that this subpart is part of. |
void |
setBytes(byte[] bytes)
Set the content byte array. |
void |
setElemNumber(int elemNumber)
Set the element number for this part. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EmailSubpartInfo(Teamspace teamspace, java.lang.String ownerID, java.lang.String contentType, java.lang.String filename, byte[] bytes, int elemNumber)
MimePart
object.teamspace
- the teamspace that this subpart is inownerID
- the owner of this subpartcontentType
- the Mime type of this subpartfilename
- the filename to be used with this subpartbytes
- a byte array of the contentelemNumber
- the element numberMethod Detail |
public Teamspace getTeamspace()
public java.lang.String getContentID()
null
if there's no such
header.public int getElemNumber()
public void setElemNumber(int elemNumber)
elemNumber
- the new element number for this part.public java.lang.String getContentLocation()
null
if there's
no such header.public java.lang.String getContentType()
public java.lang.String getFilename()
public java.lang.String getOwnerID()
public com.filenet.wcm.api.TransportInputStream getContent()
TransportInputStream
, this will also have an associated MIME type and filename.public byte[] getBytes()
public void setBytes(byte[] bytes)
bytes
- the byte array for the subpart's contentpublic com.filenet.wcm.api.Properties getProperties(com.filenet.wcm.api.Document parent)
parent
- the owning email message
|
Collaboration API Documentation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |