|
@ -13,19 +13,19 @@ public class CrawlerRouteBulider extends RouteBuilder {
|
|
|
public void configure() throws Exception {
|
|
|
|
|
|
from("jetty:http://192.168.131.96:8066/crawlerPull").routeId("crawlerPull")
|
|
|
.process(new DefaultHttpProcessor()).setHeader(Exchange.HTTP_METHOD, constant("POST"))
|
|
|
.process(new DefaultHttpProcessor("{\"jobId\":\"5ad5c11655d443c30155d477a6b10000\"}")).setHeader(Exchange.HTTP_METHOD, constant("POST"))
|
|
|
.to("http://192.168.131.96:8088/crawler/patientList");
|
|
|
|
|
|
from("jetty:http://192.168.131.96:8066/crawlerPush").routeId("crawlerPush")
|
|
|
.process(new DefaultHttpProcessor()).setHeader(Exchange.HTTP_METHOD, constant("POST"))
|
|
|
.process(new DefaultHttpProcessor("{\"jobId\":\"5ad5c11655d443c30155d477a6b10000\"}")).setHeader(Exchange.HTTP_METHOD, constant("POST"))
|
|
|
.to("http://192.168.131.96:8088/crawler/patient");
|
|
|
|
|
|
from("jetty:http://192.168.131.96:8066/crawlerFlowPull").routeId("crawlerFlowPull")
|
|
|
.process(new DefaultHttpProcessor()).setHeader(Exchange.HTTP_METHOD, constant("POST"))
|
|
|
.process(new DefaultHttpProcessor("{\"jobId\":\"5ad5c11655d443c30155d477a6b10000\"}")).setHeader(Exchange.HTTP_METHOD, constant("POST"))
|
|
|
.to("http://192.168.131.96:8088/crawler/patientListFlow");
|
|
|
|
|
|
from("jetty:http://192.168.131.96:8066/crawlerFlowPush").routeId("crawlerFlowPush")
|
|
|
.process(new DefaultHttpProcessor()).setHeader(Exchange.HTTP_METHOD, constant("POST"))
|
|
|
.process(new DefaultHttpProcessor("{\"jobId\":\"5ad5c11655d443c30155d477a6b10000\"}")).setHeader(Exchange.HTTP_METHOD, constant("POST"))
|
|
|
.to("http://192.168.131.96:8088/crawler/patientFlow");
|
|
|
}
|
|
|
}
|