11package com .github .scribejava .core .httpclient ;
22
3+ import com .github .scribejava .core .httpclient .multipart .MultipartPayload ;
34import com .github .scribejava .core .model .OAuthAsyncRequestCallback ;
45import com .github .scribejava .core .model .OAuthRequest ;
56import com .github .scribejava .core .model .Response ;
@@ -20,6 +21,27 @@ public interface HttpClient extends Closeable {
2021 <T > Future <T > executeAsync (String userAgent , Map <String , String > headers , Verb httpVerb , String completeUrl ,
2122 byte [] bodyContents , OAuthAsyncRequestCallback <T > callback , OAuthRequest .ResponseConverter <T > converter );
2223
24+ /**
25+ * @param <T> T
26+ * @param userAgent userAgent
27+ * @param headers headers
28+ * @param httpVerb httpVerb
29+ * @param completeUrl completeUrl
30+ * @param bodyContents bodyContents
31+ * @param callback callback
32+ * @param converter converter
33+ * @return return
34+ *
35+ * @deprecated use {@link #executeAsync(java.lang.String, java.util.Map, com.github.scribejava.core.model.Verb,
36+ * java.lang.String, com.github.scribejava.core.httpclient.multipart.MultipartPayload,
37+ * com.github.scribejava.core.model.OAuthAsyncRequestCallback,
38+ * com.github.scribejava.core.model.OAuthRequest.ResponseConverter)}
39+ */
40+ @ Deprecated
41+ <T > Future <T > executeAsync (String userAgent , Map <String , String > headers , Verb httpVerb , String completeUrl ,
42+ com .github .scribejava .core .httpclient .MultipartPayload bodyContents , OAuthAsyncRequestCallback <T > callback ,
43+ OAuthRequest .ResponseConverter <T > converter );
44+
2345 <T > Future <T > executeAsync (String userAgent , Map <String , String > headers , Verb httpVerb , String completeUrl ,
2446 MultipartPayload bodyContents , OAuthAsyncRequestCallback <T > callback ,
2547 OAuthRequest .ResponseConverter <T > converter );
@@ -33,6 +55,24 @@ <T> Future<T> executeAsync(String userAgent, Map<String, String> headers, Verb h
3355 Response execute (String userAgent , Map <String , String > headers , Verb httpVerb , String completeUrl ,
3456 byte [] bodyContents ) throws InterruptedException , ExecutionException , IOException ;
3557
58+ /**
59+ * @param userAgent userAgent
60+ * @param headers headers
61+ * @param httpVerb httpVerb
62+ * @param completeUrl completeUrl
63+ * @param bodyContents bodyContents
64+ * @return return
65+ * @throws InterruptedException InterruptedException
66+ * @throws ExecutionException ExecutionException
67+ * @throws IOException IOException
68+ * @deprecated use {@link #execute(java.lang.String, java.util.Map, com.github.scribejava.core.model.Verb,
69+ * java.lang.String, com.github.scribejava.core.httpclient.multipart.MultipartPayload)}
70+ */
71+ @ Deprecated
72+ Response execute (String userAgent , Map <String , String > headers , Verb httpVerb , String completeUrl ,
73+ com .github .scribejava .core .httpclient .MultipartPayload bodyContents )
74+ throws InterruptedException , ExecutionException , IOException ;
75+
3676 Response execute (String userAgent , Map <String , String > headers , Verb httpVerb , String completeUrl ,
3777 MultipartPayload bodyContents ) throws InterruptedException , ExecutionException , IOException ;
3878
0 commit comments