Skip to content

Commit 1dd86be

Browse files
author
Grzegorz Piwowarek
committed
Add module
1 parent 3dae7f5 commit 1dd86be

2 files changed

Lines changed: 5 additions & 10 deletions

File tree

‎okhttp/src/main/java/org/baeldung/okhttp/ProgressRequestWrapper.java‎

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
package org.baeldung.okhttp;
22

3-
import okhttp3.RequestBody;
43
import okhttp3.MediaType;
4+
import okhttp3.RequestBody;
5+
import okio.*;
56

67
import java.io.IOException;
78

8-
import okio.Buffer;
9-
import okio.BufferedSink;
10-
import okio.ForwardingSink;
11-
import okio.Okio;
12-
import okio.Sink;
13-
149
public class ProgressRequestWrapper extends RequestBody {
1510

1611
protected RequestBody delegate;
@@ -65,9 +60,8 @@ public void write(Buffer source, long byteCount) throws IOException {
6560

6661
}
6762

68-
public static interface ProgressListener {
69-
70-
public void onRequestProgress(long bytesWritten, long contentLength);
63+
public interface ProgressListener {
64+
void onRequestProgress(long bytesWritten, long contentLength);
7165

7266
}
7367
}

‎pom.xml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
<module>rest-assured</module>
7070
<module>rest-testing</module>
7171
<module>resteasy</module>
72+
<module>okhttp</module>
7273

7374
<module>spring-all</module>
7475
<module>spring-akka</module>

0 commit comments

Comments
 (0)