camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matteo Cusmai <cusmaimat...@gmail.com>
Subject zip split end in XML
Date Sun, 21 May 2017 08:32:01 GMT
Hi all,
I would like to write the following DSL route in XML fashion, but I don't
find how to specify the end() tag.

public void configure() throws Exception {
ZipFileDataFormat zipFile = new ZipFileDataFormat();
zipFile.setUsingIterator(true);
from("file://" + dir + "?delete=true&moveFailed=" + errorDir +
"&include=.*.zip")
.split(new ZipSplitter())
    .streaming()
    .to("file://" + dir + "?include=.*.zip")
    *.end()*
.process(proc)
.choice()
.when(header("result").isEqualTo("true")).to("file://" + archiveDirectory)
.when(header("result").isEqualTo("false")).to("file://" + errorDirectory)
.endChoice();
}

There is a way to do this in XML?
Thanks a lot,

Matteo

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message