Class PaymentParametersValidationInterceptor

  • All Implemented Interfaces:
    org.springframework.web.servlet.AsyncHandlerInterceptor, org.springframework.web.servlet.HandlerInterceptor

    @Component
    public class PaymentParametersValidationInterceptor
    extends org.springframework.web.servlet.handler.HandlerInterceptorAdapter
    This interceptor is used for incoming requests validation accessed for XS2A PIS controllers. This interceptor should be registered (and launched) before the main request validation interceptor, because ASPSP profile configuration is autowired here and some documentation-specific HTTP codes must be returned from it.

    Also, binding by PSD2 controller method names is used here to cover all XS2A PIS controller endpoints (initiate payment, start its SCA, cancel payment etc).

    • Constructor Detail

      • PaymentParametersValidationInterceptor

        public PaymentParametersValidationInterceptor()
    • Method Detail

      • preHandle

        public boolean preHandle​(javax.servlet.http.HttpServletRequest request,
                                 javax.servlet.http.HttpServletResponse response,
                                 Object handler)
                          throws IOException
        Specified by:
        preHandle in interface org.springframework.web.servlet.HandlerInterceptor
        Overrides:
        preHandle in class org.springframework.web.servlet.handler.HandlerInterceptorAdapter
        Throws:
        IOException