refactor(codec): map SIS XML through annotated DTOs

This commit is contained in:
windyboy
2026-09-09 19:48:45 +08:00
parent c2d4a76e3e
commit 3ed54d306e
7 changed files with 290 additions and 157 deletions
@@ -14,9 +14,8 @@ sealed interface DecodeResult {
}
/**
* XML codecXXE 防护(禁 DTD/外部实体);阶段 1 先 vendor 复用 legacy entity/msg POJO +
* jackson-dataformat-xml + JaxbAnnotationIntrospector(现役已验证组合,ACMA-6 选型)
* TODO(阶段1后续): vendor POJO 引入与 BDPB workaround 配置化(golden 固化)。
* XML codec使用 SIS 文档对应的 Jackson XML 注解 DTO,再显式转换为领域载荷;
* XMLInputFactory 禁用 DTD/外部实体,原文仍由入站层保留
*/
interface XmlCodec {
fun decode(rawXml: String): DecodeResult