public class OkHttpNetwork
extends java.lang.Object
| Constructor and Description |
|---|
OkHttpNetwork(java.net.HttpURLConnection urlConnection) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
java.io.OutputStream |
getOutputStream() |
int |
getResponseCode() |
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getResponseHeaders() |
java.io.InputStream |
getServerStream(int responseCode,
Headers headers) |
public java.io.OutputStream getOutputStream()
throws java.io.IOException
java.io.IOExceptionpublic int getResponseCode()
throws java.io.IOException
java.io.IOExceptionpublic java.util.Map<java.lang.String,java.util.List<java.lang.String>> getResponseHeaders()
public java.io.InputStream getServerStream(int responseCode,
Headers headers)
throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
java.io.IOException