Class CoinbaseNetHttpClient
java.lang.Object
com.coinbase.core.client.CoinbaseNetHttpClient
- All Implemented Interfaces:
CoinbaseClient
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.fasterxml.jackson.databind.ObjectMapper -
Constructor Summary
ConstructorsConstructorDescriptionCoinbaseNetHttpClient(CoinbaseCredentials credentials, String baseUrl) CoinbaseNetHttpClient(CoinbaseCredentials credentials, String baseUrl, HttpClient client) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract <T> ThandleResponse(HttpResponse<String> response, List<Integer> expectedStatusCodes, com.fasterxml.jackson.core.type.TypeReference<T> responseClass) <T> TsendRequest(HttpMethod httpMethod, String path, List<Integer> expectedStatusCodes, Object options, com.fasterxml.jackson.core.type.TypeReference<T> responseClass)
-
Field Details
-
mapper
protected final com.fasterxml.jackson.databind.ObjectMapper mapper
-
-
Constructor Details
-
CoinbaseNetHttpClient
-
CoinbaseNetHttpClient
-
-
Method Details
-
getCredentials
-
sendRequest
public <T> T sendRequest(HttpMethod httpMethod, String path, List<Integer> expectedStatusCodes, Object options, com.fasterxml.jackson.core.type.TypeReference<T> responseClass) throws CoinbaseClientException - Specified by:
sendRequestin interfaceCoinbaseClient- Throws:
CoinbaseClientException
-
handleResponse
protected abstract <T> T handleResponse(HttpResponse<String> response, List<Integer> expectedStatusCodes, com.fasterxml.jackson.core.type.TypeReference<T> responseClass)
-