375.8. 예제
다음은 Message Filter에서 predicate로 XPath 식을 사용하는 간단한 예입니다.
작업할 표준 네임스페이스 세트가 있고 여러 different different XPath 표현식 에서공유하려는 경우 NamespaceBuilder를 사용할 수 있습니다.
이 샘플에는 선택 구성이 있습니다. 메시지에 Camel 값이 있는 헤더 키 유형이 있는 경우 첫 번째 선택 사항Evaulates if the message has a header key type that has the value Camel.
두 번째 선택은 메시지 본문에 name tag <name>이 홍콩 인 값을 갖는지 평가합니다.
If neither is neither is true, the message is routed in the otherwise block:
그리고 봄의 경로에 해당하는 XML: