@Target(value=PARAMETER) @Retention(value=RUNTIME) @Documented public @interface OutboundAttachments
Used on component methods, this parameter annotation passes in a reference to a
Map
that can be used to populate outbound attachments that will
be set with the outgoing message. For example, when sending an email message, you
may want to add attachments such as images or documents.
This annotation must only be defined on a parameter of type Map
.
The elements in the map will be of type DataHandler
, thus
the annotated parameter should be defined as
java.util.Map<java.lang.String, javax.activation.DataHandler>
where the key is the attachment name and the value is the handler for the
attachment.
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.