Skip to content

Commit

Permalink
change a.class to requestBody.class
Browse files Browse the repository at this point in the history
  • Loading branch information
亢哲 committed Sep 23, 2016
1 parent 9047d0b commit 29ae6cb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import android.test.ApplicationTestCase;

/**
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
* <IncrementaRequestBody href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</IncrementaRequestBody>
*/
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTest() {
Expand Down
4 changes: 2 additions & 2 deletions okhttpadapter/src/main/java/com/zjutkz/OkHttpAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 29ae6cb

Please sign in to comment.