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

camel-http - Avoid reflection in creating http method

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.0.1, 3.1.0
    • camel-http
    • None
    • Unknown

    Description

      In this code
      https://github.com/apache/camel/blob/master/components/camel-http/src/main/java/org/apache/camel/component/http/HttpMethods.java#L52

      We can instead just use a switch on the verb name and create the class via regular java code

      Attachments

        Activity

          People

            zhfeng Zheng Feng
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h
                1h