atg.service.email
Class ContentPart

java.lang.Object
  extended by atg.service.email.ContentPart

public class ContentPart
extends java.lang.Object

A data structure corresponding to a body part in a javax.mail.Message. Contains the content of the body part, as well as the MIME type of the content.

See Also:
MimeMessageUtils

Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Constructor Summary
ContentPart()
          Creates a new ContentPart object.
ContentPart(java.lang.Object pContent, java.lang.String pContentType)
          Creates a new ContentPart object with the given content and MIME type.
 
Method Summary
 java.lang.Object getContent()
          Returns the content.
 java.lang.String getContentType()
          Returns the MIME type of the content.
 void setContent(java.lang.Object pContent)
          Sets the content.
 void setContentType(java.lang.String pContentType)
          Sets the MIME type of the content.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string

Constructor Detail

ContentPart

public ContentPart()
Creates a new ContentPart object.


ContentPart

public ContentPart(java.lang.Object pContent,
                   java.lang.String pContentType)
Creates a new ContentPart object with the given content and MIME type.

Method Detail

getContent

public java.lang.Object getContent()
Returns the content.


setContent

public void setContent(java.lang.Object pContent)
Sets the content.


getContentType

public java.lang.String getContentType()
Returns the MIME type of the content.


setContentType

public void setContentType(java.lang.String pContentType)
Sets the MIME type of the content.