@Override public void configure() throws Exception { fromF("sjms2:topic:%s", name) .routeId(name + " period=" + samplePeriod + " headers=" + showHeaders) .toF("log:topic-logger?groupInterval=%d", samplePeriod * 1000) .sample(samplePeriod, TimeUnit.SECONDS) .toF("log:topic-logger?showHeaders=%s&maxChars=100000", String.valueOf(showHeaders)); LOGGER.info("Starting route: {}", toString()); }
@Override public void configure() throws Exception { from("direct:input") .toF("mhd-iti67:localhost:%d", FhirTestContainer.DEMO_APP_PORT); from("mhd-iti67:translation?audit=true") .errorHandler(noErrorHandler()) .transform(new Iti67Responder()); }
@Override public void configure() throws Exception { from("direct:input") .toF("mhd-iti66:localhost:%d", FhirTestContainer.DEMO_APP_PORT); from("mhd-iti66:translation?audit=true") .errorHandler(noErrorHandler()) .transform(new Iti66Responder()); }
@Override public void configure() throws Exception { from("direct:input") .toF("mhd-iti67:localhost:%d?fhirContext=#fhirContext", FhirTestContainer.DEMO_APP_PORT); from("mhd-iti67:translation?audit=true&fhirContext=#fhirContext") .errorHandler(noErrorHandler()) .transform(new Iti67Responder()); }
@Override public void configure() throws Exception { from("direct:input") .toF("mhd-iti66:localhost:%d", FhirTestContainer.DEMO_APP_PORT); from("mhd-iti66:translation?audit=true") .errorHandler(noErrorHandler()) .transform(new Iti66Responder()); }
@Override public void configure() throws Exception { from("direct:input") .setHeader(Exchange.HTTP_METHOD, constant(HttpMethods.GET)) .toF("http4:localhost:%d", StandardTestContainer.DEMO_APP_PORT); from("mhd-iti68:download?audit=true") .errorHandler(noErrorHandler()) .transform(new Iti68Responder()); }
@Override public void configure() throws Exception { from("direct:input") .toF("mhd-iti65:localhost:%d", FhirTestContainer.DEMO_APP_PORT); from("mhd-iti65:stub?audit=true") .errorHandler(noErrorHandler()) .setHeader(VALIDATION_MODE, constant(SCHEMA | MODEL)) .process(itiRequestValidator()) .transform(new Responder()); }
@Override public void configure() throws Exception { from("direct:input") .toF("pdqm-iti78:localhost:%d?sslContextParameters=#myContext", FhirTestContainer.DEMO_APP_PORT); from("pdqm-iti78:translation?audit=true") // Translate into ITI-9 .errorHandler(noErrorHandler()) .process(translateFhir(requestTranslator)) .process(itiValidator()) // Create some static response .transform(new Iti21Responder(responseCase)) // Translate back into FHIR .process(itiValidator()) .process(translateToFhir(responseTranslator, Message.class)); }
@Override public void configure() throws Exception { from("direct:input") .toF("pdqm-iti78:localhost:%d?sslContextParameters=#myContext", FhirTestContainer.DEMO_APP_PORT); from("pdqm-iti78:translation?audit=true") // Translate into ITI-9 .errorHandler(noErrorHandler()) .process(translateFhir(requestTranslator)) .process(itiValidator()) // Create some static response .transform(new Iti21Responder(responseCase)) // Translate back into FHIR .process(itiValidator()) .process(translateToFhir(responseTranslator, Message.class)); }
@Override public void configure() throws Exception { from("direct:input") .toF("pdqm-iti78:localhost:%d", FhirTestContainer.DEMO_APP_PORT); from("pdqm-iti78:translation?audit=true") // Translate into ITI-9 .errorHandler(noErrorHandler()) .process(translateFhir(requestTranslator)) .process(itiValidator()) // Create some static response .transform(new Iti21Responder(responseCase)) // Translate back into FHIR .process(itiValidator()) .process(translateToFhir(responseTranslator, Message.class)); }
@Override public void configure() throws Exception { from("direct:input") .toF("pixm-iti83:localhost:%d", FhirTestContainer.DEMO_APP_PORT); from("pixm-iti83:translation?audit=true") // Translate into ITI-9 .errorHandler(noErrorHandler()) .process(translateFhir(requestTranslator)) .process(itiValidator()) // Create some static response .transform(new Iti9Responder(responseCase)) // Translate back into FHIR .process(itiValidator()) .process(translateToFhir(responseTranslator, Message.class)); }
@Override public void configure() throws Exception { from("direct:input") .toF("pixm-iti83:localhost:%d", FhirTestContainer.DEMO_APP_PORT); from("pixm-iti83:translation?audit=true") // Translate into ITI-9 .errorHandler(noErrorHandler()) .process(translateFhir(requestTranslator)) .process(itiValidator()) // Create some static response .transform(new Iti9Responder(responseCase)) // Translate back into FHIR .process(itiValidator()) .process(translateToFhir(responseTranslator, Message.class)); }
@Override public void configure() throws Exception { from("direct:input") .toF("pdqm-iti78:localhost:%d?fhirContext=#fhirContext", FhirTestContainer.DEMO_APP_PORT); from("pdqm-iti78:translation?audit=true&fhirContext=#fhirContext") // Translate into ITI-9 .errorHandler(noErrorHandler()) .process(translateFhir(requestTranslator)) .process(itiValidator()) // Create some static response .transform(new Iti21Responder(responseCase)) // Translate back into FHIR .process(itiValidator()) .process(translateToFhir(responseTranslator, Message.class)); }
@Override public void configure() { from("direct:input") .toF("mhd-iti65:localhost:%d", FhirTestContainer.DEMO_APP_PORT); from("mhd-iti65:stub?audit=true&fhirContext=#fhirContext") .errorHandler(noErrorHandler()) .setHeader(ValidatorAdapter.NEED_VALIDATION_HEADER_NAME, constant(true)) .setHeader(VALIDATION_MODE, constant(SCHEMA | SCHEMATRON )) // | MODEL)) .process(itiRequestValidator()) .transform(new Responder()); // Start up a second transaction route, sharing the same resource provider // and the same FHIR context if (startSecondRoute) { from("batch:batch?audit=false&fhirContext=#fhirContext") .errorHandler(noErrorHandler()) .throwException(new UnprocessableEntityException("This sucks")); } }