public abstract class AbstractService extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ACCEPT_HEADER |
protected static String |
APPLICATION_JSON |
protected static String |
AUTHORISATIONS |
protected static Pattern |
CHARSET_PATTERN |
protected static String |
CONTENT_TYPE_HEADER |
protected HttpClient |
httpClient |
protected JsonMapper |
jsonMapper |
protected static String |
STATUS |
| Constructor and Description |
|---|
AbstractService() |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,String> |
addConsentIdHeader(Map<String,String> headers) |
protected static String |
buildUri(String uri,
RequestParams requestParams) |
protected Class<?> |
getSinglePaymentInitiationBodyClass() |
protected Map<String,String> |
populateDeleteHeaders(Map<String,String> headers) |
protected Map<String,String> |
populateGetHeaders(Map<String,String> headers) |
protected Map<String,String> |
populatePostHeaders(Map<String,String> headers) |
protected Map<String,String> |
populatePutHeaders(Map<String,String> headers) |
protected ErrorResponseException |
responseException(int statusCode,
PushbackInputStream responseBody,
ResponseHeaders responseHeaders) |
void |
setHttpClient(HttpClient httpClient) |
protected static final Pattern CHARSET_PATTERN
protected static final String AUTHORISATIONS
protected static final String STATUS
protected static final String CONTENT_TYPE_HEADER
protected static final String APPLICATION_JSON
protected static final String ACCEPT_HEADER
protected final JsonMapper jsonMapper
protected HttpClient httpClient
public void setHttpClient(HttpClient httpClient)
protected Map<String,String> populateDeleteHeaders(Map<String,String> headers)
protected ErrorResponseException responseException(int statusCode, PushbackInputStream responseBody, ResponseHeaders responseHeaders)
protected static String buildUri(String uri, RequestParams requestParams)
protected Class<?> getSinglePaymentInitiationBodyClass()
Copyright © 2019. All rights reserved.