Class SpringExpressionBiConsumer<T,U>
java.lang.Object
net.shibboleth.shared.spring.expression.AbstractSpringExpressionEvaluator
net.shibboleth.shared.spring.expression.SpringExpressionBiConsumer<T,U>
- Type Parameters:
T- first input typeU- second input type
- All Implemented Interfaces:
BiConsumer<T,U>
public class SpringExpressionBiConsumer<T,U>
extends AbstractSpringExpressionEvaluator
implements BiConsumer<T,U>
Predicate whose condition is defined by an Spring EL expression.
- Since:
- 6.1.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidGet the input type to be enforced.protected voidprepareContext(EvaluationContext context, Object... input) Pre-process the script context before execution.voidSet the input types to be enforced.Methods inherited from class net.shibboleth.shared.spring.expression.AbstractSpringExpressionEvaluator
evaluate, getCustomObject, getOutputType, getReturnOnError, setCustomObject, setHideExceptions, setOutputType, setReturnOnErrorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiConsumer
andThen
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
inputTypes
Input types.
-
-
Constructor Details
-
SpringExpressionBiConsumer
public SpringExpressionBiConsumer(@Nonnull @NotEmpty @ParameterName(name="expression") String expression) Constructor.- Parameters:
expression- the expression to evaluate
-
-
Method Details
-
getInputTypes
Get the input type to be enforced.- Returns:
- input type
-
accept
- Specified by:
acceptin interfaceBiConsumer<T,U>
-
prepareContext
Pre-process the script context before execution.- Specified by:
prepareContextin classAbstractSpringExpressionEvaluator- Parameters:
context- the expression contextinput- the inputs
-