Package com.helger.phase4.attachment
Interface IAS4IncomingAttachmentFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Factory interface for
WSS4JAttachment objects for handling incoming
attachments.- Author:
- Philip Helger
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IAS4IncomingAttachmentFactoryThe default instance ofIAS4IncomingAttachmentFactorythat usesWSS4JAttachment.createIncomingFileAttachment(MimeBodyPart, AS4ResourceHelper) -
Method Summary
Modifier and TypeMethodDescriptioncreateAttachment(jakarta.mail.internet.MimeBodyPart aBodyPart, AS4ResourceHelper aResHelper) Create an attachment if the source message is a MIME message
-
Field Details
-
DEFAULT_INSTANCE
The default instance ofIAS4IncomingAttachmentFactorythat usesWSS4JAttachment.createIncomingFileAttachment(MimeBodyPart, AS4ResourceHelper)
-
-
Method Details
-
createAttachment
@Nonnull WSS4JAttachment createAttachment(@Nonnull jakarta.mail.internet.MimeBodyPart aBodyPart, @Nonnull AS4ResourceHelper aResHelper) throws IOException, jakarta.mail.MessagingException Create an attachment if the source message is a MIME message- Parameters:
aBodyPart- The attachment body partaResHelper- The resource manager to use. May not benull.- Returns:
- The internal attachment representation. Never
null. - Throws:
IOException- In case of IO errorjakarta.mail.MessagingException- In case MIME part reading fails.
-