|
@ -1,6 +1,6 @@
|
|
package camel.crawler.route;
|
|
|
|
|
|
package camel.terminal.crawler.route;
|
|
|
|
|
|
import camel.crawler.processor.DefaultHttpProcessor;
|
|
|
|
|
|
import camel.terminal.crawler.processor.DefaultHttpProcessor;
|
|
import org.apache.camel.Exchange;
|
|
import org.apache.camel.Exchange;
|
|
import org.apache.camel.builder.RouteBuilder;
|
|
import org.apache.camel.builder.RouteBuilder;
|
|
|
|
|
|
@ -14,18 +14,18 @@ public class CrawlerRouteBulider extends RouteBuilder {
|
|
|
|
|
|
from("jetty:http://192.168.131.96:8066/crawlerPull").routeId("crawlerPull")
|
|
from("jetty:http://192.168.131.96:8066/crawlerPull").routeId("crawlerPull")
|
|
.process(new DefaultHttpProcessor("{\"jobId\":\"5ad5c11655d443c30155d477a6b10000\"}")).setHeader(Exchange.HTTP_METHOD, constant("POST"))
|
|
.process(new DefaultHttpProcessor("{\"jobId\":\"5ad5c11655d443c30155d477a6b10000\"}")).setHeader(Exchange.HTTP_METHOD, constant("POST"))
|
|
.to("http://192.168.131.96:8088/camel.crawler/patientList");
|
|
|
|
|
|
.to("http://192.168.131.96:8088/camel.terminal.crawler/patientList");
|
|
|
|
|
|
from("jetty:http://192.168.131.96:8066/crawlerPush").routeId("crawlerPush")
|
|
from("jetty:http://192.168.131.96:8066/crawlerPush").routeId("crawlerPush")
|
|
.process(new DefaultHttpProcessor("{\"jobId\":\"5ad5c11655d443c30155d477a6b10000\"}")).setHeader(Exchange.HTTP_METHOD, constant("POST"))
|
|
.process(new DefaultHttpProcessor("{\"jobId\":\"5ad5c11655d443c30155d477a6b10000\"}")).setHeader(Exchange.HTTP_METHOD, constant("POST"))
|
|
.to("http://192.168.131.96:8088/camel.crawler/patient");
|
|
|
|
|
|
.to("http://192.168.131.96:8088/camel.terminal.crawler/patient");
|
|
|
|
|
|
from("jetty:http://192.168.131.96:8066/crawlerFlowPull").routeId("crawlerFlowPull")
|
|
from("jetty:http://192.168.131.96:8066/crawlerFlowPull").routeId("crawlerFlowPull")
|
|
.process(new DefaultHttpProcessor("{\"jobId\":\"5ad5c11655d443c30155d477a6b10000\"}")).setHeader(Exchange.HTTP_METHOD, constant("POST"))
|
|
.process(new DefaultHttpProcessor("{\"jobId\":\"5ad5c11655d443c30155d477a6b10000\"}")).setHeader(Exchange.HTTP_METHOD, constant("POST"))
|
|
.to("http://192.168.131.96:8088/camel.crawler/patientListFlow");
|
|
|
|
|
|
.to("http://192.168.131.96:8088/camel.terminal.crawler/patientListFlow");
|
|
|
|
|
|
from("jetty:http://192.168.131.96:8066/crawlerFlowPush").routeId("crawlerFlowPush")
|
|
from("jetty:http://192.168.131.96:8066/crawlerFlowPush").routeId("crawlerFlowPush")
|
|
.process(new DefaultHttpProcessor("{\"jobId\":\"5ad5c11655d443c30155d477a6b10000\"}")).setHeader(Exchange.HTTP_METHOD, constant("POST"))
|
|
.process(new DefaultHttpProcessor("{\"jobId\":\"5ad5c11655d443c30155d477a6b10000\"}")).setHeader(Exchange.HTTP_METHOD, constant("POST"))
|
|
.to("http://192.168.131.96:8088/camel.crawler/patientFlow");
|
|
|
|
|
|
.to("http://192.168.131.96:8088/camel.terminal.crawler/patientFlow");
|
|
}
|
|
}
|
|
}
|
|
}
|