Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-2453

have ObjectToJsonTransformer optionally set the content type

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 2.1 GA
    • Fix Version/s: 2.2 M1
    • Component/s: Core
    • Labels:
      None

      Description

      A nice-to-have feature for the object to JSON transformer would be to have it automatically set the content type to application/json or text/json to eliminate the need for a separate header enricher.

      It could be enabled/disabled with a new boolean attribute and depending on the need, a separate attribute to indicate which of the two content type values should be used.

      Something along the lines of:

      <int:object-to-json-transformer ... set-content-type="true" content-type="application/json" />

        Attachments

          Activity

            People

            Assignee:
            oleg.zhurakousky@springsource.com Oleg Zhurakousky
            Reporter:
            kylesm Kyle Smith
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: