FileDocCategorySizeDatePackage
MimeMultipartReport.javaAPI DocApache James 2.3.12719Fri Jan 12 12:56:34 GMT 2007org.apache.james.util.mail

MimeMultipartReport

public class MimeMultipartReport extends MimeMultipart
Class MimeMultipartReport implements JavaMail support for a MIME type of MimeMultipart with a subtype of report.

Fields Summary
Constructors Summary
public MimeMultipartReport()
Default constructor

        this("report");
    
public MimeMultipartReport(String subtype)
Constructs a MimeMultipartReport of the given subtype.

param
subtype

        super(subtype);
    
public MimeMultipartReport(DataSource aDataSource)
Constructs a MimeMultipartReport from the passed DataSource.

param
aDataSource
throws
javax.mail.MessagingException

        super(aDataSource);
    
Methods Summary
protected voidsetContentType(javax.mail.internet.ContentType aContentType)
Sets the content type

param
aContentType

        contentType = aContentType.toString();
    
public voidsetReportType(java.lang.String reportType)
Sets the type of report.

param
reportType
throws
MessagingException

        ContentType contentType = new ContentType(getContentType());
        contentType.setParameter("report-type", reportType);
        setContentType(contentType);