public abstract class Endpoint<REQ,RES> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
apiKey |
protected HttpClient |
httpClient |
protected com.fasterxml.jackson.databind.ObjectMapper |
objectMapper |
protected com.fasterxml.jackson.dataformat.javaprop.JavaPropsMapper |
propsMapper |
| Modifier | Constructor and Description |
|---|---|
protected |
Endpoint(String apiKey) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
removeNullValues(Map<Object,Object> fields) |
protected abstract RES |
sendRequest(REQ request) |
protected final String apiKey
protected final com.fasterxml.jackson.dataformat.javaprop.JavaPropsMapper propsMapper
protected final com.fasterxml.jackson.databind.ObjectMapper objectMapper
protected final HttpClient httpClient
protected Endpoint(String apiKey)
protected abstract RES sendRequest(REQ request) throws IOException
IOExceptionCopyright © 2021. All rights reserved.