Deprecate OkHttp 2.x support

Issue: SPR-14344
This commit is contained in:
Juergen Hoeller 2016-07-04 23:23:28 +02:00
parent 81057a2cee
commit ccf791b63f
4 changed files with 9 additions and 0 deletions

View File

@ -39,7 +39,9 @@ import org.springframework.util.concurrent.SettableListenableFuture;
* @author Arjen Poutsma
* @since 4.3
* @see org.springframework.http.client.OkHttp3AsyncClientHttpRequest
* @deprecated as of Spring 5.0, in favor of OkHttp 3.x
*/
@Deprecated
class OkHttpAsyncClientHttpRequest extends AbstractBufferingAsyncClientHttpRequest {
private final OkHttpClient client;
@ -75,6 +77,7 @@ class OkHttpAsyncClientHttpRequest extends AbstractBufferingAsyncClientHttpReque
}
@Deprecated
private static class OkHttpListenableFuture extends SettableListenableFuture<ClientHttpResponse> {
private final Call call;

View File

@ -34,7 +34,9 @@ import org.springframework.http.HttpMethod;
* @author Arjen Poutsma
* @since 4.2
* @see org.springframework.http.client.OkHttp3ClientHttpRequest
* @deprecated as of Spring 5.0, in favor of OkHttp 3.x
*/
@Deprecated
class OkHttpClientHttpRequest extends AbstractBufferingClientHttpRequest {
private final OkHttpClient client;

View File

@ -42,7 +42,9 @@ import org.springframework.util.StringUtils;
* @author Arjen Poutsma
* @since 4.2
* @see org.springframework.http.client.OkHttp3ClientHttpRequestFactory
* @deprecated as of Spring 5.0, in favor of OkHttp 3.x
*/
@Deprecated
public class OkHttpClientHttpRequestFactory
implements ClientHttpRequestFactory, AsyncClientHttpRequestFactory, DisposableBean {

View File

@ -31,7 +31,9 @@ import org.springframework.util.Assert;
* @author Arjen Poutsma
* @since 4.2
* @see org.springframework.http.client.OkHttp3ClientHttpResponse
* @deprecated as of Spring 5.0, in favor of OkHttp 3.x
*/
@Deprecated
class OkHttpClientHttpResponse extends AbstractClientHttpResponse {
private final Response response;