V
- public 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 . |
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>
apply
in interface Function<ContextAndRequest,Promise<? extends V,? extends Exception>,Exception>
contextAndRequest
- The input parameter.Promise
representing the result of applying this
function to value
.Copyright 2011-2015 ForgeRock AS.