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

Avoid restlet response header warnings by using Restlet HeaderUtils

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.20.2
    • Fix Version/s: 2.21.1, 2.22.0
    • Component/s: camel-restlet
    • Labels:
      None
    • Estimated Complexity:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: