Top Description Fields Constructors Methods
javax.mail

public abstract Class BodyPart

extends Object
implements Part
Class Inheritance
All Implemented Interfaces
javax.mail.Part
Known Direct Subclasses
javax.mail.internet.MimeBodyPart

This class models a Part that is contained within a Multipart. This is an abstract class. Subclasses provide actual implementations.

BodyPart implements the Part interface. Thus, it contains a set of attributes and a "content".

Authors
John Mani, Bill Shannon

Field Summary

Modifier and TypeField and Description
protected Multipart
parent

The Multipart object containing this BodyPart, if known.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Multipart

Returns:

the parent Multipart
getParent
()

Return the containing Multipart object, or null if not known.

pack-priv void
setParent(Multipart parent)

Set the parent of this BodyPart to be the specified Multipart.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

parentback to summary
protected Multipart parent

The Multipart object containing this BodyPart, if known.

Since
JavaMail 1.1

Constructor Detail

BodyPartback to summary
public BodyPart()

Method Detail

getParentback to summary
public Multipart getParent()

Return the containing Multipart object, or null if not known.

Returns:Multipart

the parent Multipart

setParentback to summary
pack-priv void setParent(Multipart parent)

Set the parent of this 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.

Since
JavaMail 1.1