28 List<RetcatItem> retcatlist = LocalRetcatItems.getLocalCatalogue();
29 boolean match =
false;
32 if (retcat.contains(
"this.")) {
33 String vocab = retcat.split(
"this.")[1];
34 query = GeneralFunctions.encodeURIComponent(query);
35 URI targetURIForRedirection =
new URI(ConfigProperties.getPropertyParam(
"api") +
"/v1/rtc/query/labelingsystem/" + vocab +
"?query=" + query);
36 return Response.temporaryRedirect(targetURIForRedirection).build();
39 for (RetcatItem item : retcatlist) {
40 if (retcat.contains(item.getName())) {
41 query = GeneralFunctions.encodeURIComponent(query);
42 URI targetURIForRedirection =
new URI(ConfigProperties.getPropertyParam(
"api") + item.getQueryURL() +
"?query=" + query);
43 return Response.temporaryRedirect(targetURIForRedirection).build();
48 URI targetURIForRedirection =
new URI(ConfigProperties.getPropertyParam(
"api") +
"/v1/rtc/query/html" +
"?url=" + query);
49 return Response.temporaryRedirect(targetURIForRedirection).build();
51 return Response.ok().build();