T
- public class Xs2aOutcomeMapper<T> extends Object implements OutcomeMapper<T>
Modifier and Type | Field and Description |
---|---|
protected CompletableFuture<Result<T>> |
channel |
protected DtoMapper<Set<ValidationIssue>,Set<ValidationError>> |
errorMapper |
protected Function<ProcessResponse,T> |
extractBodyOnSuccess |
Constructor and Description |
---|
Xs2aOutcomeMapper() |
Modifier and Type | Method and Description |
---|---|
void |
onConsentAcquired(ConsentAcquired acquired) |
void |
onError() |
void |
onRedirect(Redirect redirectResult) |
void |
onReturnableProcessError(InternalReturnableProcessError internalReturnableProcessError) |
void |
onSuccess(ProcessResponse responseResult) |
void |
onValidationProblem(ValidationProblem problem) |
protected final CompletableFuture<Result<T>> channel
protected final Function<ProcessResponse,T> extractBodyOnSuccess
protected final DtoMapper<Set<ValidationIssue>,Set<ValidationError>> errorMapper
public void onSuccess(ProcessResponse responseResult)
onSuccess
in interface OutcomeMapper<T>
public void onRedirect(Redirect redirectResult)
onRedirect
in interface OutcomeMapper<T>
public void onValidationProblem(ValidationProblem problem)
onValidationProblem
in interface OutcomeMapper<T>
public void onConsentAcquired(ConsentAcquired acquired)
onConsentAcquired
in interface OutcomeMapper<T>
public void onReturnableProcessError(InternalReturnableProcessError internalReturnableProcessError)
onReturnableProcessError
in interface OutcomeMapper<T>
public void onError()
onError
in interface OutcomeMapper<T>
Copyright © 2020. All rights reserved.