public class OkSdkHttpClient extends java.lang.Object implements BaseSdkHttpClient
BaseSdkHttpClient.Callback
DEFAULT_SOCKET_TIMEOUT
Constructor and Description |
---|
OkSdkHttpClient() |
Modifier and Type | Method and Description |
---|---|
void |
get(java.lang.String url,
java.util.Map<java.lang.String,java.lang.String> params,
BaseSdkHttpClient.Callback callback,
int timeout) |
com.squareup.okhttp.OkHttpClient |
getHttpClient(int timeout) |
void |
post(java.lang.String url,
java.util.Map<java.lang.String,java.lang.String> params,
BaseSdkHttpClient.Callback callback,
int timeout) |
void |
postFile(java.lang.String url,
java.util.Map<java.lang.String,java.lang.String> params,
BaseSdkHttpClient.Callback callback,
int timeout,
java.io.File file) |
public void post(java.lang.String url, java.util.Map<java.lang.String,java.lang.String> params, BaseSdkHttpClient.Callback callback, int timeout)
post
in interface BaseSdkHttpClient
public void get(java.lang.String url, java.util.Map<java.lang.String,java.lang.String> params, BaseSdkHttpClient.Callback callback, int timeout)
get
in interface BaseSdkHttpClient
public void postFile(java.lang.String url, java.util.Map<java.lang.String,java.lang.String> params, BaseSdkHttpClient.Callback callback, int timeout, java.io.File file)
postFile
in interface BaseSdkHttpClient
public com.squareup.okhttp.OkHttpClient getHttpClient(int timeout)