|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@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.
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |