Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-12429

Avoid restlet response header warnings by using Restlet HeaderUtils

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.20.2
    • 2.21.1, 2.22.0
    • camel-restlet
    • None
    • Unknown

    Description

      Camel still prints warnings such as this:

      Addition of the standard response header "ETag" is not allowed. Please use the equivalent property in the Restlet API.
      

      However, these headers are actually easy to set by using Restlet's own HeaderUtils, specifically via:

      HeaderUtils.copyResponseTransportHeaders(standardHeaders, response);
      HeaderUtils.extractEntityHeaders(standardHeaders, response.getEntity());
      

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            koscejev Anton Koscejev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: