Class BuiltInFunctions
java.lang.Object
com.predic8.membrane.core.lang.spel.functions.BuiltInFunctions
This class's public methods are automatically registered in the SpEL context by the BuiltInFunctionResolver.
These methods must adhere to the following constraints:
1. They must be static.
2. They should operate in a non-destructive manner on their parameters.
3. An ExchangeEvaluationContext object must be included as the last parameter in every method, even if it's the sole parameter.
The ExchangeEvaluationContext provides a specialized Membrane SpEL context, enabling access to the Exchange and other relevant data.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic booleanhasScope(String scope, ExchangeEvaluationContext ctx) static booleanhasScope(List<String> scopes, ExchangeEvaluationContext ctx) static booleanstatic booleanisLoggedIn(String beanName, ExchangeEvaluationContext ctx) static ObjectjsonPath(String jsonPath, ExchangeEvaluationContext ctx) static booleanweight(double weightInPercent, ExchangeEvaluationContext ignored)
-
Constructor Details
-
BuiltInFunctions
public BuiltInFunctions()
-
-
Method Details
-
jsonPath
-
weight
-
isLoggedIn
-
isBearerAuthorization
-
hasScope
-
hasScope
-
hasScope
-