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 <[email protected]> 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 >
