Package net.shibboleth.ext.spring.util
Class AbstractSpringExpressionEvaluator<T,U>
java.lang.Object
net.shibboleth.ext.spring.util.AbstractSpringExpressionEvaluator<T,U>
- Type Parameters:
T- type of inputU- type of output
@Deprecated(forRemoval=true,
since="6.1.0")
public abstract class AbstractSpringExpressionEvaluator<T,U>
extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
A component that evaluates a Spring EL expression against a set of inputs
and returns the result.
- Since:
- 5.4.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ObjectDeprecated, for removal: This API element is subject to removal in a future version.A custom object to inject into the expression context.private booleanDeprecated, for removal: This API element is subject to removal in a future version.Whether to raise runtime exceptions if expression fails.Deprecated, for removal: This API element is subject to removal in a future version.The input type.private final org.slf4j.LoggerDeprecated, for removal: This API element is subject to removal in a future version.Class logger.Deprecated, for removal: This API element is subject to removal in a future version.The output type.private UDeprecated, for removal: This API element is subject to removal in a future version.Value to return from predicate when an error occurs.private StringDeprecated, for removal: This API element is subject to removal in a future version.SpEL expression to evaluate. -
Constructor Summary
ConstructorsConstructorDescriptionAbstractSpringExpressionEvaluator(String expression) Deprecated, for removal: This API element is subject to removal in a future version.Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected UDeprecated, for removal: This API element is subject to removal in a future version.Evaluate the Spring expression on the provided input.Deprecated, for removal: This API element is subject to removal in a future version.Get the custom (externally provided) object.Deprecated, for removal: This API element is subject to removal in a future version.Get the input type to be enforced.Deprecated, for removal: This API element is subject to removal in a future version.Get the output type to be enforced.protected voidprepareContext(EvaluationContext context, T input) Deprecated, for removal: This API element is subject to removal in a future version.Decorate the expression context with any additional content.voidsetCustomObject(Object object) Deprecated, for removal: This API element is subject to removal in a future version.Set a custom (externally provided) object.voidsetHideExceptions(boolean flag) Deprecated, for removal: This API element is subject to removal in a future version.Set whether to hide exceptions in expression execution (default is false).voidsetInputType(Class<T> type) Deprecated, for removal: This API element is subject to removal in a future version.Set the input type to be enforced.voidsetOutputType(Class<U> type) Deprecated, for removal: This API element is subject to removal in a future version.Set the output type to be enforced.voidsetReturnOnError(U what) Deprecated, for removal: This API element is subject to removal in a future version.Set value to return if an error occurs (default is false).
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logDeprecated, for removal: This API element is subject to removal in a future version.Class logger. -
springExpression
Deprecated, for removal: This API element is subject to removal in a future version.SpEL expression to evaluate. -
customObject
Deprecated, for removal: This API element is subject to removal in a future version.A custom object to inject into the expression context. -
outputType
Deprecated, for removal: This API element is subject to removal in a future version.The output type. -
inputType
Deprecated, for removal: This API element is subject to removal in a future version.The input type. -
hideExceptions
private boolean hideExceptionsDeprecated, for removal: This API element is subject to removal in a future version.Whether to raise runtime exceptions if expression fails. -
returnOnError
Deprecated, for removal: This API element is subject to removal in a future version.Value to return from predicate when an error occurs.
-
-
Constructor Details
-
AbstractSpringExpressionEvaluator
public AbstractSpringExpressionEvaluator(@Nonnull @NotEmpty @ParameterName(name="expression") String expression) Deprecated, for removal: This API element is subject to removal in a future version.Constructor.- Parameters:
expression- the expression to evaluate
-
-
Method Details
-
setOutputType
Deprecated, for removal: This API element is subject to removal in a future version.Set the output type to be enforced.- Parameters:
type- output type
-
getOutputType
Deprecated, for removal: This API element is subject to removal in a future version.Get the output type to be enforced.- Returns:
- output type
-
getInputType
Deprecated, for removal: This API element is subject to removal in a future version.Get the input type to be enforced.- Returns:
- input type
-
setInputType
Deprecated, for removal: This API element is subject to removal in a future version.Set the input type to be enforced.- Parameters:
type- input type
-
setCustomObject
Deprecated, for removal: This API element is subject to removal in a future version.Set a custom (externally provided) object.- Parameters:
object- the custom object
-
getCustomObject
Deprecated, for removal: This API element is subject to removal in a future version.Get the custom (externally provided) object.- Returns:
- the custom object
-
setHideExceptions
public void setHideExceptions(boolean flag) Deprecated, for removal: This API element is subject to removal in a future version.Set whether to hide exceptions in expression execution (default is false).- Parameters:
flag- flag to set
-
setReturnOnError
Deprecated, for removal: This API element is subject to removal in a future version.Set value to return if an error occurs (default is false).- Parameters:
what- value to set
-
evaluate
Deprecated, for removal: This API element is subject to removal in a future version.Evaluate the Spring expression on the provided input.- Parameters:
input- input over which to evaluate the expression- Returns:
- result of applying the expression to the provided input
-
prepareContext
Deprecated, for removal: This API element is subject to removal in a future version.Decorate the expression context with any additional content.- Parameters:
context- expression contextinput- to predicate
-