Mercurial > dive4elements > river
comparison 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 |
comparison
equal
deleted
inserted
replaced
942:796c54058dc4 | 943:5de90b0cff8e |
---|---|
38 | 38 |
39 Element root = ProtocolUtils.createRootNode(creator); | 39 Element root = ProtocolUtils.createRootNode(creator); |
40 desc.appendChild(root); | 40 desc.appendChild(root); |
41 | 41 |
42 ProtocolUtils.appendDescribeHeader(creator, root, identifier(), hash()); | 42 ProtocolUtils.appendDescribeHeader(creator, root, identifier(), hash()); |
43 root.appendChild(createOutputModes(cc, creator)); | 43 root.appendChild(createOutputModes(cc, desc, creator)); |
44 | 44 |
45 return desc; | 45 return desc; |
46 } | 46 } |
47 | 47 |
48 | 48 |
49 protected Element createOutputModes(CallContext cc, ElementCreator creator){ | 49 protected Element createOutputModes( |
50 CallContext cc, | |
51 Document doc, | |
52 ElementCreator creator) | |
53 { | |
50 Element outs = ProtocolUtils.createArtNode( | 54 Element outs = ProtocolUtils.createArtNode( |
51 creator, "outputmodes", null, null); | 55 creator, "outputmodes", null, null); |
52 | 56 |
53 State state = getCurrentState(cc); | 57 State state = getCurrentState(cc); |
54 List<Output> list = state.getOutputs(); | 58 List<Output> list = state.getOutputs(); |
59 List<Output> generated = generateOutputs(list, fs); | 63 List<Output> generated = generateOutputs(list, fs); |
60 | 64 |
61 logger.debug("Found " + fs.size() + " current facets."); | 65 logger.debug("Found " + fs.size() + " current facets."); |
62 if (!generated.isEmpty()) { | 66 if (!generated.isEmpty()) { |
63 ProtocolUtils.appendOutputModes( | 67 ProtocolUtils.appendOutputModes( |
64 creator, outs, generated); | 68 doc, outs, generated); |
65 } | 69 } |
66 } | 70 } |
67 else { | 71 else { |
68 logger.debug("No facets found for the current state."); | 72 logger.debug("No facets found for the current state."); |
69 } | 73 } |