public abstract class BodyPart extends java.lang.Object implements Part
BodyPart implements the Part interface. Thus, it contains a set of attributes and a "content".
| Modifier and Type | Field and Description |
|---|---|
protected Multipart |
parent
The
Multipart object containing this BodyPart,
if known. |
ATTACHMENT, INLINE| Constructor and Description |
|---|
BodyPart() |
| Modifier and Type | Method and Description |
|---|---|
Multipart |
getParent()
Return the containing
Multipart object,
or null if not known. |
(package private) void |
setParent(Multipart parent)
Set the parent of this
BodyPart to be the specified
Multipart. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddHeader, getAllHeaders, getContent, getContentType, getDataHandler, getDescription, getDisposition, getFileName, getHeader, getInputStream, getLineCount, getMatchingHeaders, getNonMatchingHeaders, getSize, isMimeType, removeHeader, setContent, setContent, setDataHandler, setDescription, setDisposition, setFileName, setHeader, setText, writeToprotected Multipart parent
Multipart object containing this BodyPart,
if known.public Multipart getParent()
Multipart object,
or null if not known.void setParent(Multipart parent)
BodyPart to be the specified
Multipart. Normally called by Multipart's
addBodyPart method. parent may be
null if the BodyPart is being removed
from its containing Multipart.