java - header value in regex expression for apache camel -
this question has answer here:
i want read files folder correspond regex this
from("direct:queuealpha").process(new datetaggenerator()).from("file:///folder1/folder2/?delete=false&include=.*(${headers.timetag}).*);
so datetaggenerator sets header value want use in regex input. tried escaping {, $ , }
using simple doing sth wrong.
how can dynamically create value header or body, can used regex?
since camel 2.16 can use content enricher dynamic endpoints ([doc][1]) , in particular pollenrich
(as using file
endpont)
from("direct:queuealpha") .process(new datetaggenerator()) .pollenrich.simple("file:/folder1/folder2/?delete=false&include=${headers.timetagexpr}") .process(…) // can process message .to(…); // , send onward
Comments
Post a Comment