public final class ErrorAugmentingFilter extends DecoratorApiProvider
decoratedProvider| Constructor and Description |
|---|
ErrorAugmentingFilter(ApiProvider decoratedProvider,
Set<ErrorDefinition> extraErrors)
Creates a filter for a fixed set of error definitions.
|
| Modifier and Type | Method and Description |
|---|---|
void |
invoke(String serviceId,
String operationId,
DataValue input,
ExecutionContext ctx,
AsyncHandle<MethodResult> asyncHandle)
Invokes the specified operation using the provided input and
execution context.
|
public ErrorAugmentingFilter(ApiProvider decoratedProvider, Set<ErrorDefinition> extraErrors)
decoratedProvider - decorated providerextraErrors - extra error definitions; must not be nullpublic void invoke(String serviceId, String operationId, DataValue input, ExecutionContext ctx, AsyncHandle<MethodResult> asyncHandle)
ApiProviderTarget method is identified by serviceId and
operationId.
invoke in interface ApiProviderinvoke in class DecoratorApiProviderserviceId - identifier of the target serviceoperationId - identifier of the target operationinput - operation input parametersctx - execution context for the invocationasyncHandle - handle used to asynchronously "return" the result
or error of the invocationCopyright © 2022. All rights reserved.