Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/server/MapPrintServiceImpl.java @ 2905:51ed89b754ae
FLYS client: Removed trailing whitespace.
flys-client/trunk@4671 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 15 Jun 2012 09:35:37 +0000 |
parents | 427df4e81af0 |
children | 6ef48927df38 |
comparison
equal
deleted
inserted
replaced
2904:e740c43e6f5b | 2905:51ed89b754ae |
---|---|
53 import org.mapfish.print.MapPrinter; | 53 import org.mapfish.print.MapPrinter; |
54 import org.mapfish.print.output.OutputFactory; | 54 import org.mapfish.print.output.OutputFactory; |
55 import org.mapfish.print.output.OutputFormat; | 55 import org.mapfish.print.output.OutputFormat; |
56 | 56 |
57 import org.mapfish.print.utils.PJsonObject; | 57 import org.mapfish.print.utils.PJsonObject; |
58 */ | 58 */ |
59 | 59 |
60 import org.w3c.dom.Document; | 60 import org.w3c.dom.Document; |
61 import org.w3c.dom.Element; | 61 import org.w3c.dom.Element; |
62 import org.w3c.dom.NodeList; | 62 import org.w3c.dom.NodeList; |
63 | 63 |
79 | 79 |
80 public boolean setup(Element element) { | 80 public boolean setup(Element element) { |
81 | 81 |
82 Element parent = (Element)element.getParentNode(); | 82 Element parent = (Element)element.getParentNode(); |
83 String parentName = parent.getAttribute("name"); | 83 String parentName = parent.getAttribute("name"); |
84 if (!(parentName.equals("map") | 84 if (!(parentName.equals("map") |
85 || parentName.equals("floodmap"))) { | 85 || parentName.equals("floodmap"))) { |
86 return false; | 86 return false; |
87 } | 87 } |
88 | 88 |
89 String ns = ArtifactNamespaceContext.NAMESPACE_URI; | 89 String ns = ArtifactNamespaceContext.NAMESPACE_URI; |
220 return JSON.toJSONString(spec); | 220 return JSON.toJSONString(spec); |
221 } | 221 } |
222 | 222 |
223 | 223 |
224 @Override | 224 @Override |
225 public void doGet(HttpServletRequest req, HttpServletResponse resp) | 225 public void doGet(HttpServletRequest req, HttpServletResponse resp) |
226 throws ServletException, IOException | 226 throws ServletException, IOException |
227 { | 227 { |
228 log.info("MapPrintServiceImpl.doGet"); | 228 log.info("MapPrintServiceImpl.doGet"); |
229 | 229 |
230 String uuid = req.getParameter("uuid"); | 230 String uuid = req.getParameter("uuid"); |