public class IPInRangeFunction extends FunctionBase
| Modifier and Type | Field and Description |
|---|---|
static String |
NAME
The identifier for this function
|
FUNCTION_NS, FUNCTION_NS_2, FUNCTION_NS_3| Constructor and Description |
|---|
IPInRangeFunction()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
EvaluationResult |
evaluate(List inputs,
EvaluationCtx context)
Evaluates the ip-in-range function, which takes three
IPAddressAttribute values. |
static long |
ipToLong(InetAddress ip)
Helper method
|
checkInputs, checkInputsNoBag, encode, encode, evalArgs, getFunctionId, getFunctionName, getIdentifier, getReturnType, getReturnTypeAsString, getType, makeProcessingError, returnsBagpublic static final String NAME
public EvaluationResult evaluate(List inputs, EvaluationCtx context)
IPAddressAttribute values.
This function return true if the first value falls between the second and third valuesinputs - a List of Evaluatable objects representing the
arguments passed to the functioncontext - the respresentation of the requestEvaluationResult containing true or falsepublic static long ipToLong(InetAddress ip)
ip - Copyright © 2018 WSO2. All rights reserved.