public class EocOmTransformUtil extends Object
| Constructor and Description |
|---|
EocOmTransformUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,String> |
transform(Map<String,String> targetMap,
Map<String,String> sourceMap,
String tenantId,
String product) |
static String |
transform(String message,
String tenantId,
String product)
轉換訊息中的運營單元資訊
|
static void |
transformDatakey(Map<String,String> datakeys,
Map<String,String> eocIds,
com.google.gson.JsonObject mappingJsonObject,
int level,
StringBuilder errorMsg)
將運營單元Map轉換成datakey
|
static void |
transformRequest(MessageModel messageModel)
轉換MessageModel中的Request訊息運營單元資訊 包含UID、datakey、body訊息
|
static void |
transformResponse(MessageModel messageModel)
轉換MessageModel的Response訊息中的運營單元資訊 包含body訊息
|
public static Map<String,String> transform(Map<String,String> targetMap, Map<String,String> sourceMap, String tenantId, String product) throws MDCInvocationException
MDCInvocationExceptionpublic static String transform(String message, String tenantId, String product) throws MDCInvocationException
message - 欲轉換的Json字串tenantId - 租戶IDproduct - 地端產品名稱MDCInvocationException - 調用MDC取得運營單元資訊時發生錯誤public static void transformRequest(MessageModel messageModel) throws MDCInvocationException, ProductUIDNotFoundException, TargetInvocationException, TenantInfoNotFoundException
MDCInvocationException - 調用MDC取得運營單元資訊時發生錯誤ProductUIDNotFoundException - 找不到租戶地端產品UIDTenantInfoNotFoundExceptionTargetInvocationExceptionpublic static void transformResponse(MessageModel messageModel) throws MDCInvocationException
MDCInvocationException - 調用MDC取得運營單元資訊時發生錯誤Copyright © 2021. All rights reserved.