public class AsOkHttpClient
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AsOkHttpClient.Builder |
| Modifier and Type | Field and Description |
|---|---|
static com.squareup.okhttp.MediaType |
JSON |
static com.squareup.okhttp.MediaType |
WWW_FORM |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
java.lang.String |
getHeader(java.lang.String headerKey) |
java.io.InputStream |
getResponseBodyInputStream() |
java.lang.String |
getResponseBodyString() |
java.io.InputStream |
getResponseStream() |
int |
getStatusCode() |
void |
sendRequest() |
public static final com.squareup.okhttp.MediaType JSON
public static final com.squareup.okhttp.MediaType WWW_FORM
public void sendRequest()
throws ApiException,
ConnectionException
ApiExceptionConnectionExceptionpublic void close()
public java.io.InputStream getResponseBodyInputStream()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getResponseBodyString()
throws ConnectionException
ConnectionExceptionpublic int getStatusCode()
throws ConnectionException
ConnectionExceptionpublic java.lang.String getHeader(java.lang.String headerKey)
public java.io.InputStream getResponseStream()
throws java.io.IOException
java.io.IOException