public class OkClient extends java.lang.Object implements RestClient
Constructor and Description |
---|
OkClient() |
OkClient(BaasBox.Config config)
Deprecated.
|
OkClient(com.squareup.okhttp.OkHttpClient client) |
Modifier and Type | Method and Description |
---|---|
org.apache.http.HttpResponse |
execute(HttpRequest request)
Execute the http request returning on success an HttpResponse
from the service.
|
void |
init(android.content.Context context,
BaasBox.Config config)
Initializes the client given a configuration and a context
|
public OkClient()
@Deprecated public OkClient(BaasBox.Config config)
public OkClient(com.squareup.okhttp.OkHttpClient client)
public void init(android.content.Context context, BaasBox.Config config)
RestClient
init
in interface RestClient
public org.apache.http.HttpResponse execute(HttpRequest request) throws BaasException
RestClient
execute
in interface RestClient
request
- the requestBaasException