Package com.simplicite.util
Class Mail.MailAttach
- java.lang.Object
-
- com.simplicite.util.Mail.MailPart
-
- com.simplicite.util.Mail.MailAttach
-
- Enclosing class:
public static class Mail.MailAttach extends Mail.MailPart
Attachment
-
-
Constructor Summary
Constructors Constructor Description MailAttach(java.io.File file)
ConstructorMailAttach(java.lang.Object body, java.io.File file)
Constructor.MailAttach(java.lang.Object body, java.lang.String path)
Constructor.MailAttach(java.lang.Object body, java.lang.String mimeType, java.io.File file)
COnstructor.MailAttach(java.lang.Object body, java.lang.String mimeType, java.lang.String path)
Constructor.MailAttach(java.lang.String path)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getFileName()
Get file namejava.lang.String
getFilePath()
Get file pathvoid
setFilePath(java.lang.String filePath)
Set file path-
Methods inherited from class com.simplicite.util.Mail.MailPart
getBody, getMimeType, getMIMEType, setBody, setMimeType, setMIMEType
-
-
-
-
Constructor Detail
-
MailAttach
public MailAttach(java.lang.String path) throws java.io.IOException
Constructor.- Parameters:
path
- Path- Throws:
java.io.IOException
-
MailAttach
public MailAttach(java.io.File file) throws java.io.IOException
Constructor- Parameters:
file
- File- Throws:
java.io.IOException
-
MailAttach
public MailAttach(java.lang.Object body, java.lang.String mimeType, java.lang.String path)
Constructor.- Parameters:
body
- BodymimeType
- MIME typepath
- Path
-
MailAttach
public MailAttach(java.lang.Object body, java.lang.String path)
Constructor.- Parameters:
body
- Bodypath
- Path
-
MailAttach
public MailAttach(java.lang.Object body, java.lang.String mimeType, java.io.File file)
COnstructor.- Parameters:
body
- BodymimeType
- MIME typefile
- File
-
MailAttach
public MailAttach(java.lang.Object body, java.io.File file)
Constructor.- Parameters:
body
- Bodyfile
- File
-
-