All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class netscape.messaging.mime.MIMEBodyPart

java.lang.Object
   |
   +----netscape.messaging.mime.MIMEBodyPart

public abstract class MIMEBodyPart
extends Object
implements Cloneable
The MIMEBodyPart class represents a body-part of a MIME message. MIMEBodyPart is the base class for all MIME BodyPart classes: MIMEBasicPart, MIMEMessagePart, and MIMEMultiPart.


Variable Index

 o ATTACHMENT
Content Disposition is Attachment.
 o BASE64
Base64 Transfer Encoding.
 o BINARY
Binary Data with No Transfer Encoding.
 o E7BIT
7bit Data with No Transfer Encoding.
 o E8BIT
8bit Data with No Transfer Encoding.
 o INLINE
Content Disposition is inline.
 o QP
Quoted Printable Transfer Encoding.
 o UNINITIALIZED

Constructor Index

 o MIMEBodyPart()

Method Index

 o clone()
 o getContentDescription()
Returns Content-Description of this MIME Part.
 o getContentDisposition()
Returns Content-Disposition of this MIME Part.
 o getContentDispParams()
Returns Content-Disposition Parameters of this MIME Part.
 o getContentID()
Returns Content-ID of this MIME Part.
 o getContentSubType()
Returns Content SubType of this MIME Part.
 o getContentType()
Returns Content-Type of this MIME Part.
 o getContentTypeParams()
Returns Content-Type Parameters of this MIME Part.
 o setContentDescription(String)
Sets Content-Description of this MIME Part.
 o setContentDisposition(int)
Sets Content-Disposition of this MIME Part.
 o setContentDispParams(String)
Sets Content-Disposition Parameters of this MIME Part.
 o setContentID(String)
Sets Content-ID of this MIME Part.
 o setContentSubType(String)
Sets the Content SubType of this MIME Part.
 o setContentTypeParams(String)
Sets Content-Type Parameters of this MIME Part.

Variables

 o ATTACHMENT
 public static final int ATTACHMENT
Content Disposition is Attachment.

 o INLINE
 public static final int INLINE
Content Disposition is inline.

 o BASE64
 public static final int BASE64
Base64 Transfer Encoding.

 o QP
 public static final int QP
Quoted Printable Transfer Encoding.

 o BINARY
 public static final int BINARY
Binary Data with No Transfer Encoding.

 o E7BIT
 public static final int E7BIT
7bit Data with No Transfer Encoding.

 o E8BIT
 public static final int E8BIT
8bit Data with No Transfer Encoding.

 o UNINITIALIZED
 public static final int UNINITIALIZED

Constructors

 o MIMEBodyPart
 public MIMEBodyPart()

Methods

 o getContentType
 public abstract String getContentType()
Returns Content-Type of this MIME Part. Note: The primary content-type is determined by the actual MIMEPart class and thus cannot be set.

Returns:
String containing the Content-Type or NULL if Content-Type cannot be determined.
 o getContentSubType
 public String getContentSubType()
Returns Content SubType of this MIME Part.

Returns:
String containing the Content-SubType or NULL if Content-SubType cannot be determined.
 o setContentSubType
 public void setContentSubType(String subType) throws MIMEException
Sets the Content SubType of this MIME Part. Note: The primary content-type is determined by the actual MIMEPart class and thus cannot be set.

Parameters:
subType - String to use as sub-type for this part.
Throws: MIMEException
If the subtype parameter is null.
 o getContentTypeParams
 public String getContentTypeParams()
Returns Content-Type Parameters of this MIME Part.

Returns:
String containing the Content-Type Parameters or NULL if no parameters exist.
 o setContentTypeParams
 public void setContentTypeParams(String params)
Sets Content-Type Parameters of this MIME Part.

Parameters:
params - String to use as Content-Type Parameters.
 o getContentID
 public String getContentID()
Returns Content-ID of this MIME Part.

Returns:
String containing the Content-ID Parameters or NULL if none is present.
 o setContentID
 public void setContentID(String cid)
Sets Content-ID of this MIME Part.

Parameters:
cid - String to use as Content-ID.
 o getContentDisposition
 public int getContentDisposition()
Returns Content-Disposition of this MIME Part.

Returns:
Content-Disposition of this MIME Part or -1 if none present.
See Also:
ATTACHMENT, INLINE
 o setContentDisposition
 public void setContentDisposition(int disposition) throws MIMEException
Sets Content-Disposition of this MIME Part.

Parameters:
disposition - Value of the Content-Disposition. Must be ATTACHMENT or INLINE.
Throws: MIMEException
If invalid disposition value is passed.
See Also:
ATTACHMENT, INLINE
 o getContentDispParams
 public String getContentDispParams()
Returns Content-Disposition Parameters of this MIME Part.

Returns:
String containing the Content Disposition Parameters or NULL if none exist.
 o setContentDispParams
 public void setContentDispParams(String params)
Sets Content-Disposition Parameters of this MIME Part.

Parameters:
params - String to be used as Content-Disposition Parameters.
 o getContentDescription
 public String getContentDescription()
Returns Content-Description of this MIME Part. NULL if none present.

 o setContentDescription
 public void setContentDescription(String description)
Sets Content-Description of this MIME Part.

Parameters:
description - String to be used as Content-Description.
 o clone
 public Object clone() throws CloneNotSupportedException
Overrides:
clone in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index