Loading data-discovery/src/main/java/vlkb/webapi/FormatResponseFilter.java +12 −2 Original line number Diff line number Diff line Loading @@ -112,8 +112,18 @@ public class FormatResponseFilter implements Filter settings.serviceUrls.mergeUrl(), coord.toQueryString()); final String respFormat = settings.serviceUrls.responseFormat(); LOGGER.info("responseFormat: " + respFormat); String respFormat; String respFormatReq[] = params.get("RESPONSEFORMAT"); if(respFormatReq != null && (respFormatReq.length > 0) && !respFormatReq[0].isEmpty()) { respFormat = respFormatReq[0]; LOGGER.info("responseFormat(from request): " + respFormat); } else { respFormat = settings.serviceUrls.responseFormat(); LOGGER.info("responseFormat(from settings): " + respFormat); } response.setCharacterEncoding(RESPONSE_ENCODING); Loading Loading
data-discovery/src/main/java/vlkb/webapi/FormatResponseFilter.java +12 −2 Original line number Diff line number Diff line Loading @@ -112,8 +112,18 @@ public class FormatResponseFilter implements Filter settings.serviceUrls.mergeUrl(), coord.toQueryString()); final String respFormat = settings.serviceUrls.responseFormat(); LOGGER.info("responseFormat: " + respFormat); String respFormat; String respFormatReq[] = params.get("RESPONSEFORMAT"); if(respFormatReq != null && (respFormatReq.length > 0) && !respFormatReq[0].isEmpty()) { respFormat = respFormatReq[0]; LOGGER.info("responseFormat(from request): " + respFormat); } else { respFormat = settings.serviceUrls.responseFormat(); LOGGER.info("responseFormat(from settings): " + respFormat); } response.setCharacterEncoding(RESPONSE_ENCODING); Loading