public class BuiltInFunctions
extends java.lang.Object
| Constructor and Description |
|---|
BuiltInFunctions() |
| Modifier and Type | Method and Description |
|---|---|
static com.googlecode.aviator.runtime.type.AviatorFunction |
generateGFunction(java.lang.String name,
RoleManager rm)
generateGFunction is the factory method of the g(_, _) function.
|
static boolean |
ipMatch(java.lang.String ip1,
java.lang.String ip2)
ipMatch determines whether IP address ip1 matches the pattern of IP address ip2, ip2 can be an IP address or a CIDR pattern.
|
static boolean |
keyMatch(java.lang.String key1,
java.lang.String key2)
keyMatch determines whether key1 matches the pattern of key2 (similar to RESTful path), key2 can contain a *.
|
static boolean |
keyMatch2(java.lang.String key1,
java.lang.String key2)
keyMatch2 determines whether key1 matches the pattern of key2 (similar to RESTful path), key2 can contain a *.
|
static boolean |
keyMatch3(java.lang.String key1,
java.lang.String key2)
keyMatch3 determines whether key1 matches the pattern of key2 (similar to RESTful path), key2 can contain a *.
|
static boolean |
regexMatch(java.lang.String key1,
java.lang.String key2)
regexMatch determines whether key1 matches the pattern of key2 in regular expression.
|
public static boolean keyMatch(java.lang.String key1,
java.lang.String key2)
key1 - the first argument.key2 - the second argument.public static boolean keyMatch2(java.lang.String key1,
java.lang.String key2)
key1 - the first argument.key2 - the second argument.public static boolean keyMatch3(java.lang.String key1,
java.lang.String key2)
key1 - the first argument.key2 - the second argument.public static boolean regexMatch(java.lang.String key1,
java.lang.String key2)
key1 - the first argument.key2 - the second argument.public static boolean ipMatch(java.lang.String ip1,
java.lang.String ip2)
ip1 - the first argument.ip2 - the second argument.public static com.googlecode.aviator.runtime.type.AviatorFunction generateGFunction(java.lang.String name,
RoleManager rm)
name - the name of the g(_, _) function, can be "g", "g2", ..rm - the role manager used by the function.Copyright © 2017-2019. All Rights Reserved.