Package de.xima.fc.mdl.mail
Class MultipartMailData
- java.lang.Object
-
- de.xima.fc.mdl.mail.TextMailData
-
- de.xima.fc.mdl.mail.MultipartMailData
-
- All Implemented Interfaces:
IBaseMailData
,Serializable
- Direct Known Subclasses:
MultipartMail
public class MultipartMailData extends TextMailData
Text email data with attached Files- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected List<FilePartData>
fileParts
-
Fields inherited from class de.xima.fc.mdl.mail.TextMailData
bcc, bodyParts, cc, encryptionType, forceEncryption, from, reply, sendSeparateMails, subject, to
-
Fields inherited from interface de.xima.fc.interfaces.mail.IBaseMailData
ADDRESS_SPLITTER
-
-
Constructor Summary
Constructors Constructor Description MultipartMailData(String subject, String body, String bodyMime, String from, String to, File... attFiles)
MultipartMailData(String subject, String body, String bodyMime, String from, String senderName, String to, EMailEncrpytionType encryptionType, File... attFiles)
MultipartMailData(String subject, String body, String bodyMime, String from, String senderName, String to, File... attFiles)
MultipartMailData(String subject, String body, String bodyMime, String from, String senderName, String to, URL... attFiles)
MultipartMailData(String subject, String body, String bodyMime, String from, String to, URL... attFiles)
MultipartMailData(String subject, String body, String bodyMime, String from, String to, javax.activation.DataSource... attFiles)
MultipartMailData(String subject, String body, String bodyMime, String from, javax.mail.Address[] reply, String senderName, String to, EMailEncrpytionType encryptionType, File... attFiles)
MultipartMailData(String subject, String body, String bodyMime, javax.mail.Address from, javax.mail.Address[] reply, javax.mail.Address[] to, File... attFiles)
MultipartMailData(String subject, String body, String bodyMime, javax.mail.Address from, javax.mail.Address[] reply, javax.mail.Address[] to, URL... attFiles)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addBody(String content, String mimeType)
void
addFile(File... files)
void
addFile(URL... files)
void
addFilePart(File file)
void
addFilePart(URL url)
List<FilePartData>
getFileParts()
List<File>
getFiles()
Deprecated.-
Methods inherited from class de.xima.fc.mdl.mail.TextMailData
getAddressesByString, getBcc, getBody, getBodyMimeType, getBodyParts, getCc, getEncryptionType, getFrom, getReply, getSendSeparateMails, getSubject, getTo, setBcc, setBcc, setCc, setCc, setEncryptionType, setSendSeparateMails
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.xima.fc.interfaces.mail.IBaseMailData
buildMimeMessage, buildMimeParts, getMimeMessage
-
-
-
-
Field Detail
-
fileParts
protected final List<FilePartData> fileParts
-
-
Constructor Detail
-
MultipartMailData
public MultipartMailData(String subject, String body, String bodyMime, String from, String to, File... attFiles) throws Exception
- Throws:
Exception
-
MultipartMailData
public MultipartMailData(String subject, String body, String bodyMime, String from, String senderName, String to, File... attFiles) throws Exception
- Throws:
Exception
-
MultipartMailData
public MultipartMailData(String subject, String body, String bodyMime, String from, String senderName, String to, EMailEncrpytionType encryptionType, File... attFiles) throws Exception
- Throws:
Exception
-
MultipartMailData
public MultipartMailData(String subject, String body, String bodyMime, String from, javax.mail.Address[] reply, String senderName, String to, EMailEncrpytionType encryptionType, File... attFiles) throws Exception
- Throws:
Exception
-
MultipartMailData
public MultipartMailData(String subject, String body, String bodyMime, javax.mail.Address from, javax.mail.Address[] reply, javax.mail.Address[] to, File... attFiles) throws IOException
- Throws:
IOException
-
MultipartMailData
public MultipartMailData(String subject, String body, String bodyMime, String from, String to, URL... attFiles) throws Exception
- Throws:
Exception
-
MultipartMailData
public MultipartMailData(String subject, String body, String bodyMime, String from, String senderName, String to, URL... attFiles) throws Exception
- Throws:
Exception
-
MultipartMailData
public MultipartMailData(String subject, String body, String bodyMime, javax.mail.Address from, javax.mail.Address[] reply, javax.mail.Address[] to, URL... attFiles) throws Exception
- Throws:
Exception
-
MultipartMailData
@Deprecated public MultipartMailData(String subject, String body, String bodyMime, String from, String to, javax.activation.DataSource... attFiles) throws Exception
Deprecated.useMultipartMailData(String, String, String, String, String, File...)
orMultipartMailData(String, String, String, String, String, URL...)
. DataSources will be ignored!- Throws:
Exception
-
-
Method Detail
-
getFiles
@Deprecated public List<File> getFiles()
Deprecated.
-
addFile
public void addFile(File... files) throws IOException
- Throws:
IOException
-
addFile
public void addFile(URL... files) throws IOException, URISyntaxException
- Throws:
IOException
URISyntaxException
-
addFilePart
public void addFilePart(URL url) throws URISyntaxException, IOException
- Throws:
URISyntaxException
IOException
-
addFilePart
public void addFilePart(File file) throws IOException
- Throws:
IOException
-
getFileParts
public List<FilePartData> getFileParts()
- Specified by:
getFileParts
in interfaceIBaseMailData
- Overrides:
getFileParts
in classTextMailData
-
-