Class HeadersBodyMapperTemplate<C extends BaseContext,H,V,B>
- java.lang.Object
-
- de.adorsys.opba.protocol.xs2a.service.mapper.HeadersBodyMapperTemplate<C,H,V,B>
-
- Type Parameters:
C- Context classH- ASPSP API headers classV- ASPSP API object to validate after mapping, compatible withXs2aValidatorB- ASPSP API object to use when doing API call
- Direct Known Subclasses:
AisConsentInitiateExtractor
public class HeadersBodyMapperTemplate<C extends BaseContext,H,V,B> extends Object
Mapper class to map from context object likeXs2aContextto ASPSP API request parameters (headers and body).
-
-
Constructor Summary
Constructors Constructor Description HeadersBodyMapperTemplate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValidatedHeadersBody<H,B>forExecution(C context)Converts context object into object that can be used for ASPSP API call.HeadersBodyToValidate<H,V>forValidation(C context)Converts context object into object that can be used for validation.
-
-
-
Method Detail
-
forValidation
public HeadersBodyToValidate<H,V> forValidation(C context)
Converts context object into object that can be used for validation.- Parameters:
context- Context to convert- Returns:
- Validatable object that can be used with
Xs2aValidatorto check if all necessary parameters are present
-
forExecution
public ValidatedHeadersBody<H,B> forExecution(C context)
Converts context object into object that can be used for ASPSP API call.- Parameters:
context- Context to convert- Returns:
- Object that can be used with
Xs2aAdapterto perform ASPSP API calls
-
-