Commit 5849fd96 authored by Robert Butora's avatar Robert Butora
Browse files

adds RESPONSEFORMAT param parsing

parent a93dc562
Loading
Loading
Loading
Loading
+12 −2
Original line number Diff line number Diff line
@@ -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);