90.14. 外部リソースからスクリプトを読み込み
スクリプトを外部化して、"classpath:"、"file:"、または "http:" などのリソースから Camel に読み込むことができます。これは、"resource:scheme:location" の構文を使用して行われます。たとえば、クラスパス上のファイルを参照するには、以下を実行します。
.setHeader("myHeader").xpath("resource:classpath:myxpath.txt", String.class)
.setHeader("myHeader").xpath("resource:classpath:myxpath.txt", String.class)