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
ApiException
ConnectionException
public void close()
public java.io.InputStream getResponseBodyInputStream() throws java.io.IOException
java.io.IOException
public java.lang.String getResponseBodyString() throws ConnectionException
ConnectionException
public int getStatusCode() throws ConnectionException
ConnectionException
public java.lang.String getHeader(java.lang.String headerKey)
public java.io.InputStream getResponseStream() throws java.io.IOException
java.io.IOException