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