Closed
Description
Ryan LaMothe opened SPR-6719 and commented
I need to extend CommonsClientHttpRequestFactory and override getHttpClient() in order to use RestTemplate(ClientHttpRequestFactory requestFactory) to make authenticated restful web service calls. Unfortunately, getHttpClient() returns HttpClient from Commons HttpClient 3.x which has been end-of-life'd (EOL) and is no longer supported. The CommonsClientHttpRequestFactory and in turn RestTemplate need to use the supported HttpCore 4.x and HttpClient 4.x libraries.
Affects: 3.0 GA
Attachments:
- httpcomponent_wrappers.zip (4.12 kB)
Issue Links:
- Upgrade Apache HttpClient to version 4.0 [SPR-6180] #10848 Upgrade Apache HttpClient to version 4.0 ("duplicates")
- Offer a ClientHttpRequestFactory for usage with Apache HttpComponents HttpClient [SPR-7383] #12041 Offer a ClientHttpRequestFactory for usage with Apache HttpComponents HttpClient ("is duplicated by")
- CommonsClientHttpRequestFactory depends on outdated "commons-httpclient" 3.1 [SPR-7424] #12082 CommonsClientHttpRequestFactory depends on outdated "commons-httpclient" 3.1 ("is duplicated by")
- Provide a "username" and "password" properties for RestTemplate [SPR-7331] #11990 Provide a "username" and "password" properties for RestTemplate
8 votes, 10 watchers