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.
-
ATTACHMENT
- Content Disposition is Attachment.
-
BASE64
- Base64 Transfer Encoding.
-
BINARY
- Binary Data with No Transfer Encoding.
-
E7BIT
- 7bit Data with No Transfer Encoding.
-
E8BIT
- 8bit Data with No Transfer Encoding.
-
INLINE
- Content Disposition is inline.
-
QP
- Quoted Printable Transfer Encoding.
-
UNINITIALIZED
-
-
MIMEBodyPart()
-
-
clone()
-
-
getContentDescription()
- Returns Content-Description of this MIME Part.
-
getContentDisposition()
- Returns Content-Disposition of this MIME Part.
-
getContentDispParams()
- Returns Content-Disposition Parameters of this MIME Part.
-
getContentID()
- Returns Content-ID of this MIME Part.
-
getContentSubType()
- Returns Content SubType of this MIME Part.
-
getContentType()
- Returns Content-Type of this MIME Part.
-
getContentTypeParams()
- Returns Content-Type Parameters of this MIME Part.
-
setContentDescription(String)
- Sets Content-Description of this MIME Part.
-
setContentDisposition(int)
- Sets Content-Disposition of this MIME Part.
-
setContentDispParams(String)
- Sets Content-Disposition Parameters of this MIME Part.
-
setContentID(String)
- Sets Content-ID of this MIME Part.
-
setContentSubType(String)
- Sets the Content SubType of this MIME Part.
-
setContentTypeParams(String)
- Sets Content-Type Parameters of this MIME Part.
ATTACHMENT
public static final int ATTACHMENT
- Content Disposition is Attachment.
INLINE
public static final int INLINE
- Content Disposition is inline.
BASE64
public static final int BASE64
- Base64 Transfer Encoding.
QP
public static final int QP
- Quoted Printable Transfer Encoding.
BINARY
public static final int BINARY
- Binary Data with No Transfer Encoding.
E7BIT
public static final int E7BIT
- 7bit Data with No Transfer Encoding.
E8BIT
public static final int E8BIT
- 8bit Data with No Transfer Encoding.
UNINITIALIZED
public static final int UNINITIALIZED
MIMEBodyPart
public MIMEBodyPart()
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.
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.
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.
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.
setContentTypeParams
public void setContentTypeParams(String params)
- Sets Content-Type Parameters of this MIME Part.
- Parameters:
- params - String to use as Content-Type Parameters.
getContentID
public String getContentID()
- Returns Content-ID of this MIME Part.
- Returns:
- String containing the Content-ID Parameters or
NULL if none is present.
setContentID
public void setContentID(String cid)
- Sets Content-ID of this MIME Part.
- Parameters:
- cid - String to use as Content-ID.
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
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
getContentDispParams
public String getContentDispParams()
- Returns Content-Disposition Parameters of this MIME Part.
- Returns:
- String containing the Content Disposition Parameters or
NULL if none exist.
setContentDispParams
public void setContentDispParams(String params)
- Sets Content-Disposition Parameters of this MIME Part.
- Parameters:
- params - String to be used as Content-Disposition Parameters.
getContentDescription
public String getContentDescription()
- Returns Content-Description of this MIME Part. NULL if none present.
setContentDescription
public void setContentDescription(String description)
- Sets Content-Description of this MIME Part.
- Parameters:
- description - String to be used as Content-Description.
clone
public Object clone() throws CloneNotSupportedException
- Overrides:
- clone in class Object
All Packages Class Hierarchy This Package Previous Next Index