Class PathQueryHeadersMapperTemplate<C extends BaseContext,P,Q,H>
- java.lang.Object
-
- de.adorsys.opba.protocol.xs2a.service.mapper.PathQueryHeadersMapperTemplate<C,P,Q,H>
-
- Type Parameters:
C- Context classP- ASPSP API path parameters classQ- ASPSP API query parameters classH- ASPSP API headers class
- Direct Known Subclasses:
Xs2aTransactionListingService.Extractor
public class PathQueryHeadersMapperTemplate<C extends BaseContext,P,Q,H> extends Object
Mapper class to map from context object likeXs2aContextto ASPSP API request parameters (path parameters, query parameters, headers).
-
-
Constructor Summary
Constructors Constructor Description PathQueryHeadersMapperTemplate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValidatedPathQueryHeaders<P,Q,H>forExecution(C context)Converts context object into object that can be used for ASPSP API call.PathQueryHeadersToValidate<P,Q,H>forValidation(C context)Converts context object into object that can be used for validation.
-
-
-
Method Detail
-
forValidation
public PathQueryHeadersToValidate<P,Q,H> 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 ValidatedPathQueryHeaders<P,Q,H> 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
-
-