Class Xs2aOutcomeMapper<T>
- java.lang.Object
-
- de.adorsys.opba.protocol.xs2a.entrypoint.Xs2aOutcomeMapper<T>
-
- Type Parameters:
T-
- All Implemented Interfaces:
OutcomeMapper<T>
public class Xs2aOutcomeMapper<T> extends Object implements OutcomeMapper<T>
Mapper to convert from internal protocol result to facade facing protocol result.
-
-
Field Summary
Fields Modifier and Type Field Description protected CompletableFuture<de.adorsys.opba.protocol.api.dto.result.fromprotocol.Result<T>>channelprotected DtoMapper<Set<ValidationIssue>,Set<de.adorsys.opba.protocol.api.dto.result.body.ValidationError>>errorMapperprotected Function<ProcessResponse,T>extractBodyOnSuccess
-
Constructor Summary
Constructors Constructor Description Xs2aOutcomeMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonConsentAcquired(ConsentAcquired acquired)voidonError()voidonRedirect(Redirect redirectResult)voidonReturnableProcessError(InternalReturnableProcessError internalReturnableProcessError)voidonSuccess(ProcessResponse responseResult)voidonValidationProblem(ValidationProblem problem)
-
-
-
Field Detail
-
channel
protected final CompletableFuture<de.adorsys.opba.protocol.api.dto.result.fromprotocol.Result<T>> channel
-
extractBodyOnSuccess
protected final Function<ProcessResponse,T> extractBodyOnSuccess
-
errorMapper
protected final DtoMapper<Set<ValidationIssue>,Set<de.adorsys.opba.protocol.api.dto.result.body.ValidationError>> errorMapper
-
-
Method Detail
-
onSuccess
public void onSuccess(ProcessResponse responseResult)
- Specified by:
onSuccessin interfaceOutcomeMapper<T>
-
onRedirect
public void onRedirect(Redirect redirectResult)
- Specified by:
onRedirectin interfaceOutcomeMapper<T>
-
onValidationProblem
public void onValidationProblem(ValidationProblem problem)
- Specified by:
onValidationProblemin interfaceOutcomeMapper<T>
-
onConsentAcquired
public void onConsentAcquired(ConsentAcquired acquired)
- Specified by:
onConsentAcquiredin interfaceOutcomeMapper<T>
-
onReturnableProcessError
public void onReturnableProcessError(InternalReturnableProcessError internalReturnableProcessError)
- Specified by:
onReturnableProcessErrorin interfaceOutcomeMapper<T>
-
onError
public void onError()
- Specified by:
onErrorin interfaceOutcomeMapper<T>
-
-