10.7.7.2. 第 II 部分
当 direct:abc 端点收到消息时,上述验证器将应用于以下路由定义。
注意
在 XML DSL 中,使用 而不是 inputType,在 XML DSL 中将 inputType 声明的 inputType WithValidatevalidate 属性设置为 true :
Java DSL:
from("direct:abc")
.inputTypeWithValidate("xml:ABCOrder")
.log("${body}");
from("direct:abc")
.inputTypeWithValidate("xml:ABCOrder")
.log("${body}");
XML DSL: