V
- Expected type of evaluated resultpublic class ExpressionRequestAsyncFunction<V> extends Object implements AsyncFunction<ContextAndRequest,V,Exception>
AsyncFunction
based on the evaluation of an Expression
.Constructor and Description |
---|
ExpressionRequestAsyncFunction(Expression<V> expression)
Constructs an
AsyncFunction that evaluates the provided Expression . |
Modifier and Type | Method and Description |
---|---|
Promise<V,Exception> |
apply(ContextAndRequest contextAndRequest)
Asynchronously applies this function to the input parameter
value
and returns a Promise for the result. |
public ExpressionRequestAsyncFunction(Expression<V> expression)
AsyncFunction
that evaluates the provided Expression
.expression
- the expression to evaluatepublic Promise<V,Exception> apply(ContextAndRequest contextAndRequest)
AsyncFunction
value
and returns a Promise
for the result.apply
in interface AsyncFunction<ContextAndRequest,V,Exception>
contextAndRequest
- The input parameter.Promise
representing the result of applying this
function to value
.Copyright 2011-2017 ForgeRock AS.