comparison gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/horizontalcrosssection/HorizontalCrossSectionMeshOutputState.java @ 504:efab67e68bba

Trigger the calculation of the "Horizontalschnitt" when the output state is initialized. gnv-artifacts/trunk@587 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Wed, 20 Jan 2010 16:05:52 +0000
parents e065a72f6b62
children 44415ae01ddb
comparison
equal deleted inserted replaced
503:b951b14425fa 504:efab67e68bba
95 * Constructor 95 * Constructor
96 */ 96 */
97 public HorizontalCrossSectionMeshOutputState() { 97 public HorizontalCrossSectionMeshOutputState() {
98 } 98 }
99 99
100 public void initialize(String uuid, CallContext callContext)
101 throws StateException {
102 super.initialize(uuid, callContext);
103 if (log.isDebugEnabled()) {
104 log.debug("initialize output state " + uuid);
105 }
106 // fill the cache
107 getResult(uuid, callContext);
108 }
109
100 public String getShapeFilePath() { 110 public String getShapeFilePath() {
101 synchronized (shapeFileLock) { 111 synchronized (shapeFileLock) {
102 return shapeFilePath; 112 return shapeFilePath;
103 } 113 }
104 } 114 }
167 throw new StateException("cannot find outputMode or mime"); 177 throw new StateException("cannot find outputMode or mime");
168 } 178 }
169 179
170 outputMode = outputMode.toLowerCase(); 180 outputMode = outputMode.toLowerCase();
171 181
172 log.debug("---- asking for: " + outputMode); 182 if (log.isDebugEnabled()) {
183 log.debug("---- asking for: " + outputMode);
184 }
173 185
174 if ("zip".equals(outputMode)) { 186 if ("zip".equals(outputMode)) {
175 writeZip(uuid, callContext, outputStream); 187 writeZip(uuid, callContext, outputStream);
176 } 188 }
177 else if ("wms".equals(outputMode)) { 189 else if ("wms".equals(outputMode)) {

http://dive4elements.wald.intevation.org