@FunctionalInterface public interface IIncomingAttachmentFactory extends Serializable
WSS4JAttachment objects for handling incoming
attachments.| Modifier and Type | Field and Description |
|---|---|
static IIncomingAttachmentFactory |
DEFAULT_INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
WSS4JAttachment |
createAttachment(javax.mail.internet.MimeBodyPart aBodyPart,
AS4ResourceHelper aResHelper)
Create an attachment if the source message is a MIME message
|
@Nonnull static final IIncomingAttachmentFactory DEFAULT_INSTANCE
@Nonnull WSS4JAttachment createAttachment(@Nonnull javax.mail.internet.MimeBodyPart aBodyPart, @Nonnull AS4ResourceHelper aResHelper) throws IOException, javax.mail.MessagingException
aBodyPart - The attachment body partaResHelper - The resource manager to use. May not be null.null.IOException - In case of IO errorjavax.mail.MessagingException - In case MIME part reading fails.Copyright © 2015–2020 Philip Helger. All rights reserved.