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

Setting HttpConnectionManager Override Property in URI using HttpClientParams is not working

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.13.4, 2.15.0, 2.15.2
    • Fix Version/s: None
    • Component/s: camel-http
    • Labels:
    • Estimated Complexity:
      Moderate

      Description

      Hi,
      When we pass HttpClientParams in EndPoint URI, to override HttpConnectionManager class, the HttpComponent is not considering the overridden parameter,

      Example URL
      https://myapplication.com/myappservice/?bridgeEndpoint=true&throwExceptionOnFailure=false&httpClient.connectionManagerClass=org.apache.commons.httpclient.SimpleHttpConnectionManager

      In org.apache.camel.component.http.HttpComponent, if there is no bean injection of httpConnectionManager class, by default a new instance of MultiThreadedHttpConnectionManager class is created.

      In HttpComponent class, while constructing the HttpEndPoint, the same above HttpConnection Manager class is sent as reference.

      In HttpEndPoint class, createHttpClient method, although all the Http client params are considered, HttpConnectionManager class sent by the HttpClient Params is not considered.

      Please clarify or fix it.

      HttpClient answer = new HttpClient(getClientParams()); // Line Number 110 answer.setHttpConnectionManager(httpConnectionManager); // Line Number 144

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              smswamy Deepak
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: