Class Xs2aRedirectExecutor


  • @Service
    public class Xs2aRedirectExecutor
    extends Object
    Service that publishes Redirect result to internal event bus, meaning the user should be redirected to the URL generated by this service.
    • Constructor Detail

      • Xs2aRedirectExecutor

        public Xs2aRedirectExecutor()
    • Method Detail

      • redirect

        public void redirect​(org.flowable.engine.delegate.DelegateExecution execution,
                             Xs2aContext context,
                             Function<ProtocolUrlsConfiguration,​String> urlSelector)
        Redirects PSU to some page (or emits FinTech redirection required) by performing interpolation of the string returned by urlSelector
        Parameters:
        execution - Execution context of the current process
        context - Current XS2A context
        urlSelector - Redirection URL configurer - selects which URL template to use
      • redirect

        public void redirect​(org.flowable.engine.delegate.DelegateExecution execution,
                             Xs2aContext context,
                             String uiScreenUriSpel,
                             String destinationUri)
        Redirects PSU to some page (or emits FinTech redirection required) by performing interpolation of the string returned by uiScreenUriSpel
        Parameters:
        execution - Execution context of the current process
        context - Current XS2A context
        uiScreenUriSpel - UI screen SpEL expression to interpolate
        destinationUri - URL where UI screen should redirect user to if he clicks OK (i.e. to ASPSP redirection where user must click OK button in order to be redirected to ASPSP)
      • redirect

        public void redirect​(org.flowable.engine.delegate.DelegateExecution execution,
                             Xs2aContext context,
                             String uiScreenUriSpel,
                             String destinationUri,
                             Function<Redirect.RedirectBuilder,​? extends Redirect> eventFactory)
        Redirects PSU to some page (or emits FinTech redirection required) by performing interpolation of the string returned by uiScreenUriSpel
        Parameters:
        execution - Execution context of the current process
        context - Current XS2A context
        uiScreenUriSpel - UI screen SpEL expression to interpolate
        destinationUri - URL where UI screen should redirect user to if he clicks OK (i.e. to ASPSP redirection where user must click OK button in order to be redirected to ASPSP)
        eventFactory - Allows to construct custom event with redirection parameters.