Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-452

Improve Message Classes and Message Creation APIs

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • M2
    • M2
    • .NET Client
    • None

    Description

      Improve the message classes in Qpid and the associated message creation APIs to enable useful use cases:

      1- Create a new overload of the CreateMessage() to the AMQSession/AmqChannel classes that takes the MIME type of the message to create. It would simply pass that value to the underlying message factory registry to create an instance of the proper message class.

      2- Add a new method to the Session/IChannel interfaces (and corresponding
      implementations) to register a new message factory to a new MIME type (maybe add one to unregister a factory as well?)

      3- Preserve the MIME type used to create the message through the message factory registry. Right now, the mime type requested is passed to the registry which uses the associated factory. However, the mime type requestes is not passed on to the factory and instead each message class initializes the MimeType property to a default value. So, for example, if you create a message with the type "text/xml", the resulting message object will still return "text/plain" from getMimeType()

      4- Give all message classes (or at least the basics) the ability to read or replace the underlying byte buffer representing the body of the message through methods in Message/IMesssage or friends.

      Attachments

        1. QPID-452.diff
          71 kB
          Tomas Restrepo

        Activity

          People

            tomasr Tomas Restrepo
            tomasr Tomas Restrepo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: