# HG changeset patch # User Sascha L. Teichmann # Date 1345451158 0 # Node ID def13f23bb271a10b9004d13aba4f4a9a42dfa95 # Parent 17c66d38f095f0450926f046525578f229661267 Removed superfluous import. Removed some inner whitespace. Made debug output conditional. flys-client/trunk@5226 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 17c66d38f095 -r def13f23bb27 flys-client/ChangeLog --- 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 + + * 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 Added AT file export to FixAnalysis W/Q. diff -r 17c66d38f095 -r def13f23bb27 flys-client/src/main/java/de/intevation/flys/client/server/ExportServiceImpl.java --- 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) {