public class BillForwardClient extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BillForwardClient.RequestMethod |
| Modifier and Type | Field and Description |
|---|---|
String |
apiKey |
String |
apiUrl |
static String |
CHARSET |
protected static BillForwardClient |
defaultClient |
static com.google.gson.Gson |
GSON |
static com.google.gson.Gson |
GSON_NOTIFICATION_ENTITY |
| Constructor and Description |
|---|
BillForwardClient() |
| Modifier and Type | Method and Description |
|---|---|
protected <T> APIResponse<T> |
_request(Type responseType,
BillForwardClient.RequestMethod method,
String url,
T obj,
String apiKey) |
protected <TRequest,TResponse> |
_requestUntyped(Type responseType,
BillForwardClient.RequestMethod method,
String url,
TRequest obj,
String apiKey) |
String |
getApiUrl() |
static BillForwardClient |
getClient() |
boolean |
getVerifySSL() |
static BillForwardClient |
makeDefaultClient(String apiKey_,
String apiUrl_) |
<T> APIResponse<T> |
request(BillForwardClient.RequestMethod method,
String url,
T obj,
Type responseType) |
<TRequest,TResponse> |
requestUntyped(BillForwardClient.RequestMethod method,
String url,
TRequest obj,
Type responseType) |
void |
setAPIKey(String apiKey_) |
void |
setAPIUrl(String apiUrl_) |
static void |
setDefaultClient(BillForwardClient client_) |
void |
setVerifySSL(boolean verify)
(FOR TESTING ONLY)
Only disable SSL verification if you're using your own (mocked) server.
|
public String apiKey
public String apiUrl
public static final String CHARSET
protected static BillForwardClient defaultClient
public static com.google.gson.Gson GSON
public static com.google.gson.Gson GSON_NOTIFICATION_ENTITY
public static BillForwardClient getClient() throws APIException
APIExceptionpublic static void setDefaultClient(BillForwardClient client_)
public static BillForwardClient makeDefaultClient(String apiKey_, String apiUrl_)
public void setVerifySSL(boolean verify)
public boolean getVerifySSL()
public String getApiUrl()
public <TRequest,TResponse> TResponse requestUntyped(BillForwardClient.RequestMethod method, String url, TRequest obj, Type responseType) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public <T> APIResponse<T> request(BillForwardClient.RequestMethod method, String url, T obj, Type responseType) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
protected <TRequest,TResponse> TResponse _requestUntyped(Type responseType, BillForwardClient.RequestMethod method, String url, TRequest obj, String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
protected <T> APIResponse<T> _request(Type responseType, BillForwardClient.RequestMethod method, String url, T obj, String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public void setAPIKey(String apiKey_)
public void setAPIUrl(String apiUrl_)
Copyright © 2015 BillForward. All rights reserved.