Class HeadersBodyMapperTemplate<C extends BaseContext,​H,​V,​B>

  • Type Parameters:
    C - Context class
    H - ASPSP API headers class
    V - ASPSP API object to validate after mapping, compatible with Xs2aValidator
    B - 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 like Xs2aContext to ASPSP API request parameters (headers and body).
    • Constructor Detail

      • HeadersBodyMapperTemplate

        public HeadersBodyMapperTemplate()
    • 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 Xs2aValidator to 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 Xs2aAdapter to perform ASPSP API calls