[
https://issues.apache.org/jira/browse/CAMEL-13678?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16879881#comment-16879881
]
Claus Ibsen commented on CAMEL-13678:
-------------------------------------
We could create a camel-attachments component that hosts an AttachmentsMessage
that extends DefaultMessage that has all the attachments stuff. Then
camel-mail, and camel-spring-ws, camel-cxf, and maybe camel-http-common can use
that.
However then end-users cannot add arbitrary attachments on the message api.
However we could also add an adapt API to message, so you can adapt to other
types, and then if you say AttachmentsMessage then DefaultMessage will adapt to
this class.
> Attachments API on Message - Deprecate and remove
> -------------------------------------------------
>
> Key: CAMEL-13678
> URL: https://issues.apache.org/jira/browse/CAMEL-13678
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Claus Ibsen
> Priority: Major
>
> We should consider making the Camel Message API more simpler and remove stuff
> that are seldom in use, or can be component specific.
> The javax.attachment is removed from JDK11 onwards and its not really much in
> use in the future.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)