public class KeyGenUtil extends Object
Constructor and Description |
---|
KeyGenUtil() |
Modifier and Type | Method and Description |
---|---|
static List<ICacheKeyGenerator> |
combine(List<ICacheKeyGenerator> a,
List<ICacheKeyGenerator> b)
Returns a new list containing the results of combining each element in a with the
corresponding element in b.
|
static String |
generateKey(javax.servlet.http.HttpServletRequest request,
Iterable<ICacheKeyGenerator> keyGens)
Generates a cache key by aggregating (concatenating) the output of
each of the cache key generators in the array.
|
static boolean |
isProvisional(Iterable<ICacheKeyGenerator> keyGens)
Return true if any of the cache key generators in the array is a
provisional cache key generator.
|
static String |
toString(Iterable<ICacheKeyGenerator> keyGens)
Builds a string by combining the toString output of the cache key
generators in the array
|
public static boolean isProvisional(Iterable<ICacheKeyGenerator> keyGens)
keyGens
- The arraypublic static String generateKey(javax.servlet.http.HttpServletRequest request, Iterable<ICacheKeyGenerator> keyGens)
request
- The request objectkeyGens
- The arraypublic static String toString(Iterable<ICacheKeyGenerator> keyGens)
keyGens
- The arraypublic static List<ICacheKeyGenerator> combine(List<ICacheKeyGenerator> a, List<ICacheKeyGenerator> b)
The input arrays must be the same length, and the types of the array elements at each index must be the same
a
- b
- Copyright © 2011-2015 IBM. All Rights Reserved.