Package org.silverpeas.core.mail
Interface MailContent.AttachedFile
-
- All Known Implementing Classes:
SimpleDocumentMailAttachedFile
- Enclosing class:
- MailContent
public static interface MailContent.AttachedFile
Representation of an attached file.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description String
getName()
The name of the attached file.String
getPath()
The full path to the file content.default javax.mail.internet.MimeBodyPart
toBodyPart()
Gets the corresponding body part.
-
-
-
Method Detail
-
getName
String getName()
The name of the attached file.- Returns:
- a string.
-
getPath
String getPath()
The full path to the file content.- Returns:
- a string.
-
toBodyPart
default javax.mail.internet.MimeBodyPart toBodyPart() throws javax.mail.MessagingException
Gets the corresponding body part.- Returns:
- a
MimeBodyPart
instance. - Throws:
javax.mail.MessagingException
-
-