camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From William Tam <>
Subject Re: attachment headers?
Date Mon, 26 Oct 2009 22:24:08 GMT
Nevermind.  I think DataHandler probably has enough metadata in itself
(e.g. content type).

On Mon, Oct 26, 2009 at 4:54 PM, William Tam <> wrote:
> The Camel Message APIs seem to be missing getter/setter for attachment
> metadata.  For example, Message.getAttachment(String id) returns a
> DataHandler so we can't get per attachment metadata.  Do you have any
> thought to expand the APIs to support per attachment metadata?   For
> example, we could add a method Message.getAttachmentEx(String id) to
> return an Attachment interface (which has getDataHandler() and
> getHeader/s() methods)?  Could you think of better method names?  And,
> we probably should @depreciate the old methods.
> Thanks,
> William

View raw message