Mercurial > dive4elements > river
changeset 3500:def13f23bb27
Removed superfluous import. Removed some inner whitespace. Made debug output conditional.
flys-client/trunk@5226 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 20 Aug 2012 08:25:58 +0000 |
parents | 17c66d38f095 |
children | 0de0ef04bcdc |
files | flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/server/ExportServiceImpl.java |
diffstat | 2 files changed, 16 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-client/ChangeLog Fri Aug 17 11:18:15 2012 +0000 +++ b/flys-client/ChangeLog Mon Aug 20 08:25:58 2012 +0000 @@ -1,3 +1,9 @@ +2012-08-20 Sascha L. Teichmann <sascha.teichmann@intevation.de> + + * src/main/java/de/intevation/flys/client/server/ExportServiceImpl.java: + Removed superfluous import. Removed some inner whitespace. + Made debug output conditional. + 2012-08-17 Raimund Renkert <raimund.renkert@intevation.de> Added AT file export to FixAnalysis W/Q.
--- a/flys-client/src/main/java/de/intevation/flys/client/server/ExportServiceImpl.java Fri Aug 17 11:18:15 2012 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/server/ExportServiceImpl.java Mon Aug 20 08:25:58 2012 +0000 @@ -7,7 +7,6 @@ import org.w3c.dom.Element; import org.apache.log4j.Logger; -import org.json.XML; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; @@ -40,18 +39,19 @@ try { OutputStream out = resp.getOutputStream(); - String url = getServletContext().getInitParameter("server-url"); - - String uuid = req.getParameter("uuid"); - String mode = req.getParameter("mode"); - String type = req.getParameter("type"); - String locale = req.getParameter("locale"); - String km = req.getParameter("km"); - String fn = mode + "." + type; + String url = getServletContext().getInitParameter("server-url"); + String uuid = req.getParameter("uuid"); + String mode = req.getParameter("mode"); + String type = req.getParameter("type"); + String locale = req.getParameter("locale"); + String km = req.getParameter("km"); + String fn = mode + "." + type; resp.setHeader("Content-Disposition", "attachment;filename=" + fn); - logger.debug("Request " + type + " export."); + if (logger.isDebugEnabled()) { + logger.debug("Request " + type + " export."); + } Document attr = null; if (km != null && km.length() > 0) {