|
@@ -96,7 +96,7 @@ public class OKHttpUtil {
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
public static Response call(HttpMethod httpMethod, String url, Map<String, String> headers,
|
|
public static Response call(HttpMethod httpMethod, String url, Map<String, String> headers,
|
|
- String jsonBody) {
|
|
|
|
|
|
+ String jsonBody) {
|
|
return call(httpMethod, url, headers, new JsonBodyBuilder(jsonBody));
|
|
return call(httpMethod, url, headers, new JsonBodyBuilder(jsonBody));
|
|
}
|
|
}
|
|
|
|
|
|
@@ -111,7 +111,7 @@ public class OKHttpUtil {
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
public static Response call(HttpMethod httpMethod, String url, Map<String, String> headers,
|
|
public static Response call(HttpMethod httpMethod, String url, Map<String, String> headers,
|
|
- RequestBodyBuilder requestBodyBuilder) {
|
|
|
|
|
|
+ RequestBodyBuilder requestBodyBuilder) {
|
|
|
|
|
|
LOG.info("[okhttp3] new call: " + httpMethod + " " + url);
|
|
LOG.info("[okhttp3] new call: " + httpMethod + " " + url);
|
|
LOG.info("[okhttp3] headers: " + JsonUtil.toJson(headers));
|
|
LOG.info("[okhttp3] headers: " + JsonUtil.toJson(headers));
|
|
@@ -210,7 +210,7 @@ public class OKHttpUtil {
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
public static Response call(HttpMethod httpMethod, String url, Map<String, String> headers,
|
|
public static Response call(HttpMethod httpMethod, String url, Map<String, String> headers,
|
|
- Map<String, String> params) {
|
|
|
|
|
|
+ Map<String, String> params) {
|
|
|
|
|
|
LOG.info("[okhttp3] new call: " + httpMethod + " " + url);
|
|
LOG.info("[okhttp3] new call: " + httpMethod + " " + url);
|
|
LOG.info("[okhttp3] headers: " + JsonUtil.toJson(headers));
|
|
LOG.info("[okhttp3] headers: " + JsonUtil.toJson(headers));
|
|
@@ -265,7 +265,7 @@ public class OKHttpUtil {
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
public static Response call(HttpMethod httpMethod, String url, Map<String, String> headers,
|
|
public static Response call(HttpMethod httpMethod, String url, Map<String, String> headers,
|
|
- Map<String, String> params, List<FormFilePart> formFilePartList) {
|
|
|
|
|
|
+ Map<String, String> params, List<FormFilePart> formFilePartList) {
|
|
|
|
|
|
LOG.info("[okhttp3] new call: " + httpMethod + " " + url);
|
|
LOG.info("[okhttp3] new call: " + httpMethod + " " + url);
|
|
LOG.info("[okhttp3] headers: " + JsonUtil.toJson(headers));
|
|
LOG.info("[okhttp3] headers: " + JsonUtil.toJson(headers));
|
|
@@ -307,4 +307,4 @@ public class OKHttpUtil {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-}
|
|
|
|
|
|
+}
|