Completes the task #33533
- changes
build.gradlefile to use HttpClient5 - Changes imports to use HttpClient5 imports
- Migrates the changed Classes to use HttpClient5
- Some APIs have changed, so migrate those to add/remove functionality as needed
HttpHost.create()changed API to throw exceptionsURISyntaxExceptionHttpUriRequest.getUri()changed API to throw exceptionsURISyntaxException- For
URISyntaxExceptionI have just rethrown them asRuntimeException
- For
SchemePortResolverchanged API to removeUnsupportedOperationExceptionAbstractHttpEntitychanged API to require a encoding in the constructorClosableHttpReponsechanged to a final class- This Required enabling Mockito Feature
mock-maker-inlineto mock final classes
- This Required enabling Mockito Feature
Some Questions:
- Should we create a new WrapperException for cases where URISyntaxException to re-throw them ?