표준 전문의 BIZ_DATA(개별부) path를 mapping config properties 파일 설정으로 변경
- standard-message-mapping-config-djb.properties 참고 - 배열 형태의 경우, path를 정상적으로 적용 못하는 문제 우회
This commit is contained in:
@@ -292,10 +292,10 @@ public class StandardMessageUtil {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (curItem.getType() == StandardType.BIZDATA) {
|
||||
message.setBizDataPath(getFullPath(parentPath, curItem.getName()));
|
||||
logger.debug("@@@ BIZ DATA PATH = {}", message.getBizDataPath());
|
||||
}
|
||||
// if (curItem.getType() == StandardType.BIZDATA) {
|
||||
// message.setBizDataPath(getFullPath(parentPath, curItem.getName()));
|
||||
// logger.debug("@@@ BIZ DATA PATH = {}", message.getBizDataPath());
|
||||
// }
|
||||
|
||||
if (curItem.getDataType() == StandardDataType.LL_NUMBER) {
|
||||
message.setLlDataPath(getFullPath(parentPath, curItem.getName()));
|
||||
|
||||
@@ -334,6 +334,8 @@ reader.FLAT=com.eactive.eai.message.parser.FlatReader
|
||||
}
|
||||
if(logger.isDebug()) logger.debug("mapperClass : {}", mapper.getClass().getCanonicalName());
|
||||
|
||||
standardMessage.setBizDataPath(mapper.getPath(InterfaceMapper.BIZ_DATA));
|
||||
|
||||
String versionMapperClass = config.getProperty(VERSION_MAPPER);
|
||||
if(StringUtils.isEmpty(versionMapperClass)) {
|
||||
versionMapperClass = "com.eactive.eai.message.mapper.DefaultMessageMapper";
|
||||
|
||||
@@ -18,7 +18,7 @@ public class DefaultInterfaceMapper implements InterfaceMapper {
|
||||
itemPathMap = map;
|
||||
}
|
||||
|
||||
protected String getPath(String key) {
|
||||
public String getPath(String key) {
|
||||
String path = itemPathMap.get(key);
|
||||
if(StringUtils.isBlank(path)) {
|
||||
logger.debug("message-mapping not defined key = {}", key);
|
||||
|
||||
@@ -34,7 +34,11 @@ public interface InterfaceMapper extends Serializable {
|
||||
String RESPONSE_TYPE = "RESPONSE_TYPE";
|
||||
String SYNC_ASYNC_TYPE = "SYNC_ASYNC_TYPE";
|
||||
|
||||
String BIZ_DATA = "BIZ_DATA";
|
||||
|
||||
public void initPathMap(HashMap<String, String> map);
|
||||
|
||||
public String getPath(String key);
|
||||
//------------------------------------------------------------
|
||||
// 표준전문과 Mapping 되는 항목을 모두 정의해야 함.
|
||||
//------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user