Name
Multipart
Synopsis
This is a container object for multiple body parts within a
Message
. The Multipart
class allows
mail programs to access and manipulate the individual subparts of a message.
public abstract class Multipart { // Protected Constructors protected Multipart(); // Property Accessor Methods (by property name) public String getContentType(); public int getCount() throws MessagingException; public Part getParent(); public void setParent( Part parent); // Public Instance Methods public void addBodyPart( // synchronized BodyPart part) throws MessagingException; public void addBodyPart(BodyPart part, // synchronized int index) throws MessagingException; public BodyPart getBodyPart( int index) throws MessagingException; public boolean removeBodyPart( BodyPart part) throws MessagingException; public void removeBodyPart( int index) throws MessagingException; public abstract void writeTo( java.io.OutputStream os) throws IOExceptionMessagingException; // Protected Instance Methods protected void setMultipartDataSource( MultipartDataSource mp) throws MessagingException; // Protected Instance Fields protected String contentType; protected Part parent; protected java.util.Vector parts; }
Subclasses
javax.mail.internet.MimeMultipart
Passed To
BodyPart.setContent()
, javax.mail.Message.setContent()
, Part.setContent()
, javax.mail.internet.MimeBodyPart.setContent()
, javax.mail.internet.MimeMessage.setContent()
Returned By
BodyPart.getParent()
Type Of
BodyPart.parent
Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.