net.suberic.crypto
Class MultipartEncrypted

java.lang.Object
  extended byjavax.mail.Multipart
      extended byjavax.mail.internet.MimeMultipart
          extended bynet.suberic.crypto.MultipartEncrypted

public class MultipartEncrypted
extends javax.mail.internet.MimeMultipart

A subclass of MimeMultipart which allows for a custom content type.


Field Summary
 
Fields inherited from class javax.mail.internet.MimeMultipart
ds, parsed
 
Fields inherited from class javax.mail.Multipart
contentType, parent, parts
 
Constructor Summary
MultipartEncrypted(javax.mail.internet.ContentType ct)
          Makes a Multipart that uses the given content type, but otherwise is exactly like a multipart/mixed.
 
Method Summary
 java.lang.String getContentType()
          Returns the content type given in the constructor.
 
Methods inherited from class javax.mail.internet.MimeMultipart
createInternetHeaders, createMimeBodyPart, createMimeBodyPart, getBodyPart, getBodyPart, getCount, parse, setSubType, updateHeaders, writeTo
 
Methods inherited from class javax.mail.Multipart
addBodyPart, addBodyPart, getParent, removeBodyPart, removeBodyPart, setMultipartDataSource, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultipartEncrypted

public MultipartEncrypted(javax.mail.internet.ContentType ct)
Makes a Multipart that uses the given content type, but otherwise is exactly like a multipart/mixed.

Method Detail

getContentType

public java.lang.String getContentType()
Returns the content type given in the constructor.