Package de.adorsys.xs2a.adapter.impl
Class AbstractService
- java.lang.Object
-
- de.adorsys.xs2a.adapter.impl.AbstractService
-
- Direct Known Subclasses:
BaseAccountInformationService,BaseDownloadService,BasePaymentInitiationService
public abstract class AbstractService extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringACCEPT_HEADERprotected static StringAUTHORISATIONSprotected HttpClienthttpClientprotected JsonMapperjsonMapperprotected static StringSTATUS
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractService(HttpClient httpClient)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<String,String>addConsentIdHeader(Map<String,String> headers)protected Map<String,String>addPsuIdTypeHeader(Map<String,String> headers)protected static StringbuildUri(String uri, RequestParams requestParams)protected Class<?>getPaymentInitiationBodyClass(PaymentService paymentService)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 Map<String,String>resolvePsuIdHeader(Map<String,String> headers)In default implementation, adds a PSU-ID header.
-
-
-
Field Detail
-
AUTHORISATIONS
protected static final String AUTHORISATIONS
- See Also:
- Constant Field Values
-
STATUS
protected static final String STATUS
- See Also:
- Constant Field Values
-
ACCEPT_HEADER
protected static final String ACCEPT_HEADER
- See Also:
- Constant Field Values
-
jsonMapper
protected final JsonMapper jsonMapper
-
httpClient
protected final HttpClient httpClient
-
-
Constructor Detail
-
AbstractService
protected AbstractService(HttpClient httpClient)
-
-
Method Detail
-
resolvePsuIdHeader
protected Map<String,String> resolvePsuIdHeader(Map<String,String> headers)
In default implementation, adds a PSU-ID header.- Parameters:
headers- request headers- Returns:
- list of headers with added an empty PSU-ID header
-
populateDeleteHeaders
protected Map<String,String> populateDeleteHeaders(Map<String,String> headers)
-
buildUri
protected static String buildUri(String uri, RequestParams requestParams)
-
getPaymentInitiationBodyClass
protected Class<?> getPaymentInitiationBodyClass(PaymentService paymentService)
-
-