public class EocOmTransformUtil extends Object
| Constructor and Description |
|---|
EocOmTransformUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
transform(String message,
String tenantId,
String product)
轉換訊息中的運營單元資訊
|
static Map<String,String> |
transformEocOmMap(Map<String,String> targetMap,
Map<String,String> sourceMap,
String tenantId,
String product)
轉換eocmap/ommap
|
static void |
transformRequest(MessageModel messageModel)
轉換MessageModel中的Request訊息運營單元資訊 包含UID、datakey、body訊息
|
static void |
transformResponse(MessageModel messageModel)
轉換MessageModel的Response訊息中的運營單元資訊 包含body訊息
|
public static String transform(String message, String tenantId, String product) throws MDCInvocationException
message - 欲轉換的Json字串tenantId - 租戶IDproduct - 地端產品名稱MDCInvocationException - 調用MDC取得運營單元資訊時發生錯誤public static void transformRequest(MessageModel messageModel) throws Exception
Exceptionpublic static void transformResponse(MessageModel messageModel) throws MDCInvocationException
MDCInvocationException - 調用MDC取得運營單元資訊時發生錯誤Copyright © 2021. All rights reserved.