From 29ae6cb51f1d6038b2648a005490740d105f33d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=A2=E5=93=B2?= Date: Fri, 23 Sep 2016 15:02:32 +0800 Subject: [PATCH] change a.class to requestBody.class --- .../java/zjutkz/com/okhttpadapter/ApplicationTest.java | 2 +- okhttpadapter/src/main/java/com/zjutkz/OkHttpAdapter.java | 4 ++-- .../zjutkz/progress/{a.java => IncrementaRequestBody.java} | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) rename okhttpadapter/src/main/java/com/zjutkz/progress/{a.java => IncrementaRequestBody.java} (91%) diff --git a/okhttpadapter/src/androidTest/java/zjutkz/com/okhttpadapter/ApplicationTest.java b/okhttpadapter/src/androidTest/java/zjutkz/com/okhttpadapter/ApplicationTest.java index e2b2f91..28c5269 100644 --- a/okhttpadapter/src/androidTest/java/zjutkz/com/okhttpadapter/ApplicationTest.java +++ b/okhttpadapter/src/androidTest/java/zjutkz/com/okhttpadapter/ApplicationTest.java @@ -4,7 +4,7 @@ import android.test.ApplicationTestCase; /** - * Testing Fundamentals + * Testing Fundamentals */ public class ApplicationTest extends ApplicationTestCase { public ApplicationTest() { diff --git a/okhttpadapter/src/main/java/com/zjutkz/OkHttpAdapter.java b/okhttpadapter/src/main/java/com/zjutkz/OkHttpAdapter.java index e9f9ad2..6fcd912 100644 --- a/okhttpadapter/src/main/java/com/zjutkz/OkHttpAdapter.java +++ b/okhttpadapter/src/main/java/com/zjutkz/OkHttpAdapter.java @@ -3,7 +3,7 @@ import com.taobao.weex.adapter.IWXHttpAdapter; import com.taobao.weex.common.WXRequest; import com.taobao.weex.common.WXResponse; -import com.zjutkz.progress.a; +import com.zjutkz.progress.IncrementaRequestBody; import com.zjutkz.progress.IncrementalResponseBody; import com.zjutkz.progress.listener.RequestListener; import com.zjutkz.progress.listener.ResponseListener; @@ -85,7 +85,7 @@ public void onResponse(Call call, Response response) throws IOException { }else if(METHOD_POST.equalsIgnoreCase(request.method)){ Request okHttpRequest = new Request.Builder() .url(request.url) - .post(new a(RequestBody.create(MediaType.parse(request.body),request.body),requestListener)) + .post(new IncrementaRequestBody(RequestBody.create(MediaType.parse(request.body),request.body),requestListener)) .build(); client.newCall(okHttpRequest).enqueue(new Callback() { diff --git a/okhttpadapter/src/main/java/com/zjutkz/progress/a.java b/okhttpadapter/src/main/java/com/zjutkz/progress/IncrementaRequestBody.java similarity index 91% rename from okhttpadapter/src/main/java/com/zjutkz/progress/a.java rename to okhttpadapter/src/main/java/com/zjutkz/progress/IncrementaRequestBody.java index 7a9ac4b..e77ced8 100644 --- a/okhttpadapter/src/main/java/com/zjutkz/progress/a.java +++ b/okhttpadapter/src/main/java/com/zjutkz/progress/IncrementaRequestBody.java @@ -15,14 +15,14 @@ /** * Created by kangzhe on 16/9/22. */ -public class a extends RequestBody{ +public class IncrementaRequestBody extends RequestBody{ private RequestBody realBody; private RequestListener requestListener; private BufferedSink bufferedSink; - public a(RequestBody realBody, RequestListener requestListener){ + public IncrementaRequestBody(RequestBody realBody, RequestListener requestListener){ this.realBody = realBody; this.requestListener = requestListener; }