Commit e8506ef8 authored by acoburn's avatar acoburn
Browse files

fix APIX header names

parent d0a60979
......@@ -55,7 +55,7 @@ public class FitsRouter extends RouteBuilder {
"FITS service to gather technical information about a binary located in a Fedora repository.")
.process(e -> e.getIn().setHeader(FEDORA_URI,
e.getIn().getHeader(HTTP_QUERY_CONTEXT,
e.getIn().getHeader("Apix-Ldp-Resource-Path"))))
e.getIn().getHeader("Apix-Ldp-Resource"))))
.setHeader(FEDORA_BASE_URL).simple("{{fcrepo.baseUrl}}")
.log(INFO, LOGGER, "Received request for Fits data for: ${headers[CamelFedoraUri]}")
.choice()
......
......@@ -61,7 +61,7 @@ public class EventRouter extends RouteBuilder {
"httpMethodRestrict=GET,OPTIONS").routeId("ImageRouter")
.process(e -> e.getIn().setHeader(FEDORA_URI,
e.getIn().getHeader(HTTP_QUERY_CONTEXT,
e.getIn().getHeader("Apix-Ldp-Resource-Path"))))
e.getIn().getHeader("Apix-Ldp-Resource"))))
.setHeader(FEDORA_BASE_URL).simple("{{fcrepo.baseUrl}}")
.setHeader(IMAGE_OUTPUT).header(HTTP_ACCEPT)
.removeHeaders(HTTP_ACCEPT)
......
......@@ -59,7 +59,7 @@ public class EventRouter extends RouteBuilder {
.routeId("TemplateTransformation")
.process(e -> e.getIn().setHeader(FEDORA_URI,
e.getIn().getHeader(HTTP_QUERY_CONTEXT,
e.getIn().getHeader("Apix-Ldp-Resource-Path"))))
e.getIn().getHeader("Apix-Ldp-Resource"))))
.setHeader(FEDORA_BASE_URL).simple("{{fcrepo.baseUrl}}")
.choice()
.when(and(header(HTTP_METHOD).isEqualTo("GET"), header(FEDORA_URI).startsWith(header(FEDORA_BASE_URL))))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment