Package com.coinbase.core.client
Class CoinbaseNetHttpClient
- java.lang.Object
-
- com.coinbase.core.client.CoinbaseNetHttpClient
-
- All Implemented Interfaces:
CoinbaseClient
public abstract class CoinbaseNetHttpClient extends Object implements CoinbaseClient
-
-
Field Summary
Fields Modifier and Type Field Description protected com.fasterxml.jackson.databind.ObjectMappermapper
-
Constructor Summary
Constructors Constructor Description CoinbaseNetHttpClient(CoinbaseCredentials credentials, String baseUrl)CoinbaseNetHttpClient(CoinbaseCredentials credentials, String baseUrl, HttpClient client)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description CoinbaseCredentialsgetCredentials()protected 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)
-
-
-
Constructor Detail
-
CoinbaseNetHttpClient
public CoinbaseNetHttpClient(CoinbaseCredentials credentials, String baseUrl)
-
CoinbaseNetHttpClient
public CoinbaseNetHttpClient(CoinbaseCredentials credentials, String baseUrl, HttpClient client)
-
-
Method Detail
-
getCredentials
public CoinbaseCredentials 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)
-
-