| Package | Description |
|---|---|
| com.clicksend.controllers | |
| com.clicksend.controllers.syncwrapper | |
| com.clicksend.exceptions | |
| com.clicksend.http.client |
| Modifier and Type | Method and Description |
|---|---|
protected void |
BaseController.validateResponse(HttpResponse response,
HttpContext context)
Validates the response against HTTP errors defined at the API level
|
| Modifier and Type | Method and Description |
|---|---|
void |
APICallBackCatcher.onFailure(HttpContext responseContext,
Throwable error)
OnFailure handler for APICallBack.
|
void |
APICallBackCatcher.onSuccess(HttpContext context,
T response)
On Success handler for APICallBack.
|
| Modifier and Type | Method and Description |
|---|---|
HttpContext |
APIException.getHttpContext()
The HTTP response body from the API request
|
| Constructor and Description |
|---|
APIException(String reason,
HttpContext context)
Initialization constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
HttpCallBack.OnAfterResponse(HttpContext context)
Callback called just after the HTTP response is received
|
void |
APICallBack.onFailure(HttpContext context,
Throwable error)
On Completed callback for API calls
|
void |
APICallBack.onSuccess(HttpContext context,
T response)
On Completed callback for API calls
|
Copyright © 2017. All rights reserved.