|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.funambol.mail.Part
com.funambol.mail.BodyPart
public class BodyPart
A BodyPart object is foreseen to be inserted into a Multipart container, itself inserted in a multi-part Message with MIME Content-Type equal to "multipart"
Field Summary | |
---|---|
static java.lang.String |
CD_ATTACHMENT
A possible value for the the "Content-Disposition" header field |
static java.lang.String |
CD_INLINE
A possible value for the the "Content-Disposition" header field |
static java.lang.String |
CONTENT_DISPOSITION
The name of the MIME Content-Disposition header attribute |
Fields inherited from class com.funambol.mail.Part |
---|
CONTENT_TRANSFER_ENCODING, CONTENT_TYPE, contentType, ENC_7BIT, ENC_8BIT, ENC_B64, ENC_QP, headers, MULTIPART, MULTIPART_ALTERNATIVE, MULTIPART_MIXED, size, TEXT_PLAIN |
Constructor Summary | |
---|---|
BodyPart()
|
|
BodyPart(Multipart container)
|
Method Summary | |
---|---|
void |
deserialize(java.io.DataInputStream din)
|
java.lang.String |
getAttachUrl()
Returns the value of the attachment url This represents the attachment file url for this BodyPart |
Multipart |
getContainer()
Returns the container Multipart of this BodyPart. |
java.lang.Object |
getContent()
Returns the content of of this BodyPart. |
java.lang.String |
getDisposition()
Returns the value of the "Content-Disposition" header field. |
java.lang.String |
getFileName()
Returns the value of the filename attribute of the "Content-Disposition" header field. |
java.lang.String |
getTextContent()
|
void |
serialize(java.io.DataOutputStream dout)
|
void |
setAttachUrl(java.lang.String au)
Sets the attachment file url of this BodyPart |
void |
setContainer(Multipart container)
Sets the container Multipart of this BodyPart. |
void |
setContent(java.lang.Object content)
Sets the content of this BodyPart. |
void |
setContent(java.lang.Object content,
java.lang.String type)
Sets the content of this BodyPart. |
void |
setDisposition(java.lang.String disp)
Set the content disposition of this BodyPart |
void |
setFileName(java.lang.String fn)
Sets the file name of this BodyPart |
Methods inherited from class com.funambol.mail.Part |
---|
addHeader, getAllHeaders, getContentType, getHeader, getSize, isMultipart, isText, isTextHtml, isTextPlain, removeHeader, setContentType, setHeader, setSize |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CONTENT_DISPOSITION
public static final java.lang.String CD_ATTACHMENT
public static final java.lang.String CD_INLINE
Constructor Detail |
---|
public BodyPart()
public BodyPart(Multipart container)
Method Detail |
---|
public java.lang.String getDisposition()
null
if not present.public java.lang.String getFileName()
null
if not present.public java.lang.String getAttachUrl()
null
if not present.public Multipart getContainer()
public java.lang.Object getContent()
getContent
in class Part
public java.lang.String getTextContent()
public void setContainer(Multipart container)
container
- A reference to the Multipart object to set as containerpublic void setContent(java.lang.Object content) throws MailException
setContent
in class Part
MailException
public void setContent(java.lang.Object content, java.lang.String type) throws MailException
setContent
in class Part
content
- The content objecttype
- The MIME type of the content
MailException
public void setDisposition(java.lang.String disp)
disp
- One of ATTACHMENT or INLINEpublic void setFileName(java.lang.String fn)
fn
- The file name of the attachmentpublic void setAttachUrl(java.lang.String au)
au
- The url of the attachmentpublic void serialize(java.io.DataOutputStream dout) throws java.io.IOException
java.io.IOException
public void deserialize(java.io.DataInputStream din) throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |