Package org.faceless.publisher.ext
Interface MailExtension.PartBlob
- All Superinterfaces:
AbstractBlob
- Enclosing class:
- MailExtension
An interface which provides the bridge between a MIME
Part
, as used in the
MimeMessage
class, and the AbstractBlob
required by BFO Publisher
to load resources.-
Method Summary
Modifier and TypeMethodDescriptionIf this part hasContent-Disposition: attachment
, return the filename that's specified if any, or null otherwise.Return a ProcessingInstruction that would add this PartBlob as an attachmentReturn the PartBlob that is the parent of this PartBlob, or null if it's the mssagePart
getPart()
Return the Part that underlies this PartBlobboolean
Return true if this part hasContent-Disposition: attachment
Methods inherited from interface org.faceless.publisher.type.AbstractBlob
getCreationDate, getDigest, getInputStream, getLastModified, getMediaType, getURL
-
Method Details
-
isAttachment
boolean isAttachment()Return true if this part hasContent-Disposition: attachment
-
getAttachmentFilename
String getAttachmentFilename()If this part hasContent-Disposition: attachment
, return the filename that's specified if any, or null otherwise. -
getParent
MailExtension.PartBlob getParent()Return the PartBlob that is the parent of this PartBlob, or null if it's the mssage -
getPart
Part getPart()Return the Part that underlies this PartBlob -
getAttachmentProcessingInstruction
Return a ProcessingInstruction that would add this PartBlob as an attachment- Throws:
IOException
MessagingException
-