244.4. 샘플
예를 들어 XML에서 메시지 필터 내에서 OGNL을 사용할 수 있습니다.
<route>
<from uri="seda:foo"/>
<filter>
<ognl>request.headers.foo == 'bar'</ognl>
<to uri="seda:bar"/>
</filter>
</route>Java DSL을 사용하는 샘플:
from("seda:foo").filter().ognl("request.headers.foo == 'bar'").to("seda:bar");