Mercurial > dive4elements > river
diff flys-artifacts/src/main/java/de/intevation/flys/artifacts/StaticFLYSArtifact.java @ 943:5de90b0cff8e
The WMSLayerFacet now writes the WMS URL and layernames to its XML representation.
flys-artifacts/trunk@2353 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 18 Jul 2011 15:07:47 +0000 |
parents | 9e813e9137a5 |
children | 5d8b3880a553 |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/StaticFLYSArtifact.java Mon Jul 18 10:13:25 2011 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/StaticFLYSArtifact.java Mon Jul 18 15:07:47 2011 +0000 @@ -40,13 +40,17 @@ desc.appendChild(root); ProtocolUtils.appendDescribeHeader(creator, root, identifier(), hash()); - root.appendChild(createOutputModes(cc, creator)); + root.appendChild(createOutputModes(cc, desc, creator)); return desc; } - protected Element createOutputModes(CallContext cc, ElementCreator creator){ + protected Element createOutputModes( + CallContext cc, + Document doc, + ElementCreator creator) + { Element outs = ProtocolUtils.createArtNode( creator, "outputmodes", null, null); @@ -61,7 +65,7 @@ logger.debug("Found " + fs.size() + " current facets."); if (!generated.isEmpty()) { ProtocolUtils.appendOutputModes( - creator, outs, generated); + doc, outs, generated); } } else {