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

Support preview of maps/list message content

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • qpid-java-6.1
    • None
    • None

    Description

      When viewing messages through the web management console, if the message is of type such as a list or map currently the user sees the bytes of the underlying AMQP datastructure. Instead, the preview area should display the data in a human friendly way.

      The managed operation Queue#getMessageContent will be enhanced to be capable of returning a message in JSON format if possible with an optional parameter returnJson. If rather than returning the message's content bytes directly, it should first convert the message to an InternalMessage (MessageConverterRegistry.getConverter(serverMessage.getClass, InternalMessage.class).convert(...)) then use the JSON serialiser to serial the MessageBody of the resulting internal message.

      Within the WMC, if the resulting object is of a previewable type (string, map, list etc) and the content is not too long, the content should be added to a scrollable preview pane of the message dialogue by traversing the object tree and producing a human readable representation of its structure and content. (Perhaps an approach such as https://stackoverflow.com/questions/13341373/render-arbitrary-json-in-html will help)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kwall Keith Wall
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: