Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-1599

Ability to customize client engine

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.0.20.Final
    • Fix Version/s: 3.0.24.Final, 3.1.4.Final
    • Component/s: None
    • Labels:
      None

      Description

      In 3.0.19 we had an @Override of the ResteasyClientBuilder#build() method. This already convoluted workaround was necessary to configure Apache HTTP client, for example, to add a request interceptor.

      Such configuration is now effectively impossible after this commit:

      https://github.com/resteasy/Resteasy/commit/bbdf28597bb9367fcc75268d2c8abcc99b74a80c#diff-4913de17c695a002c91eeafdd0c7d7b3

      The new build() method uses private fields, so it can't be duplicated. The HttpClientBuilder43.initDefaultEngine43() call is protected static. The ResteasyClient constructor is package visible. Code that was already bad is now much worse.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                rsearls r searls
                Reporter:
                christian.bauer Christian Bauer
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: