FileDocCategorySizeDatePackage
BodyPart.javaAPI DocJavaMail 1.4.33111Tue Nov 17 10:38:12 GMT 2009javax.mail

BodyPart

public abstract class BodyPart extends Object implements Part
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".

author
John Mani
author
Bill Shannon

Fields Summary
protected Multipart
parent
The Multipart object containing this BodyPart, if known.
Constructors Summary
Methods Summary
public javax.mail.MultipartgetParent()
Return the containing Multipart object, or null if not known.

	return parent;
    
voidsetParent(javax.mail.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

	this.parent = parent;