public class OpflowUtil
extends Object
- Author:
- drupalex
-
-
-
Method Summary
| Modifier and Type |
Method |
Description |
static <T> boolean |
arrayContains(T[] array,
T v) |
|
static OpflowUtil.MapBuilder |
buildMap() |
|
static OpflowUtil.MapBuilder |
buildMap(OpflowUtil.MapListener listener) |
|
static OpflowUtil.MapBuilder |
buildMap(OpflowUtil.MapListener listener,
Map<String,Object> defaultOpts) |
|
static OpflowUtil.MapBuilder |
buildMap(OpflowUtil.MapListener listener,
Map<String,Object> defaultOpts,
boolean orderKeep) |
|
static OpflowUtil.MapBuilder |
buildMap(Map<String,Object> defaultOpts) |
|
static OpflowUtil.MapBuilder |
buildOrderedMap() |
|
static OpflowUtil.MapBuilder |
buildOrderedMap(OpflowUtil.MapListener listener) |
|
static OpflowUtil.MapBuilder |
buildOrderedMap(OpflowUtil.MapListener listener,
Map<String,Object> defaultOpts) |
|
static OpflowUtil.MapBuilder |
buildOrderedMap(Map<String,Object> defaultOpts) |
|
static void |
copyParameters(Map<String,Object> target,
Map<String,Object> source,
String[] keys) |
|
static Map<String,Object> |
ensureNotNull(Map<String,Object> opts) |
|
static Date |
fromISO8601UTC(String dateStr) |
|
static List<Class<?>> |
getAllAncestorTypes(Class<?> clazz) |
|
static String |
getAMQPEntrypointCode(Map<String,Object> cfg) |
|
static byte[] |
getBytes(String data) |
|
static String |
getClassSimpleName(Class clazz) |
|
static long |
getCurrentTime() |
|
static String |
getCurrentTimeString() |
|
static String |
getEnvironVariable(String key,
String def) |
|
static String |
getLogID() |
|
static String |
getLogID(String uuid) |
|
static String |
getMessageField(OpflowMessage message,
String fieldName) |
|
static String |
getMethodSignature(Method method) |
|
static Object |
getOptionField(Map<String,Object> options,
String[] fieldNames) |
|
static Object |
getOptionField(Map<String,Object> options,
String[] fieldNames,
Object defval) |
|
static String |
getOptionField(Map<String,Object> options,
String fieldName,
boolean uuidIfNotFound) |
|
static Object |
getOptionField(Map<String,Object> options,
String fieldName,
Object defval) |
|
static String |
getRequestId(Map<String,Object> headers) |
|
static String |
getRequestId(Map<String,Object> headers,
boolean uuidIfNotFound) |
|
static URL |
getResource(String location) |
|
static String |
getRoutineId(Map<String,Object> headers) |
|
static String |
getRoutineId(Map<String,Object> headers,
boolean uuidIfNotFound) |
|
static String |
getString(byte[] data) |
|
static String |
getSystemProperty(String key,
String def) |
|
static String |
getUUID() |
|
static String |
hidePasswordInUri(String uri) |
|
static boolean |
isAMQPEntrypointNull(Map<String,Object> cfg) |
|
static boolean |
isComponentEnabled(Map<String,Object> cfg) |
|
static boolean |
isGenericDeclaration(String signature) |
|
static <T> T |
jsonExtractField(String json,
String fieldName,
Class<T> type) |
Deprecated.
|
static int |
jsonExtractFieldAsInt(String json,
String fieldName) |
Deprecated.
|
static String |
jsonMapToString(Map<String,Object> jsonMap) |
Deprecated.
|
static <T> T |
jsonMessageToObject(OpflowMessage message,
Class<T> type) |
Deprecated.
|
static String |
jsonObjectToString(Object jsonObj) |
Deprecated.
|
static Object[] |
jsonStringToArray(String arrayString,
Class[] types) |
Deprecated.
|
static Map<String,Object> |
jsonStringToMap(String json) |
Deprecated.
|
static <T> T |
jsonStringToObject(String json,
Class<T> type) |
Deprecated.
|
static String |
maskPassword(String password) |
|
static <T> List<T> |
mergeLists(List<T> list1,
List<T> list2) |
|
static String[] |
splitByComma(String source) |
|
static <T> T[] |
splitByComma(String source,
Class<T> type) |
|
static String |
toISO8601UTC(Date date) |
|
static String |
truncate(String source) |
|
static String |
truncate(String source,
int limit) |
|
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Details
-
-
-
-
-
-
-
-
-
-
public static Date fromISO8601UTC(
String dateStr)
-
public static String getCurrentTimeString()
-
public static long getCurrentTime()
-
public static String getUUID()
-
public static String getLogID()
-
-
public static byte[] getBytes(
String data)
-
public static String getString(
byte[] data)
-
-
-
-
public static <T> boolean arrayContains(T[] array,
T v)
-
public static <T> List<T> mergeLists(
List<T> list1,
List<T> list2)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
public static <T> T[] splitByComma(
String source,
Class<T> type)
-
-
-
-
public static URL getResource(
String location)
-
public static boolean isGenericDeclaration(
String signature)
-
-
-
-
-
-
-
-