Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/state/OutputStateBase.java @ 818:8dc820099306
BUGFIX: Chartresults where stored in Cache using null-Value as Key.
gnv-artifacts/trunk@904 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Mon, 12 Apr 2010 11:28:02 +0000 |
parents | 22c18083225e |
children | 499cfbbb61bc |
comparison
equal
deleted
inserted
replaced
817:3f447e92024a | 818:8dc820099306 |
---|---|
1 package de.intevation.gnv.state; | 1 package de.intevation.gnv.state; |
2 | 2 |
3 import de.intevation.artifactdatabase.Config; | |
4 import de.intevation.artifactdatabase.XMLUtils; | |
5 | |
6 import de.intevation.artifacts.CallContext; | |
7 import de.intevation.artifacts.CallMeta; | |
8 | |
9 import de.intevation.gnv.artifacts.cache.CacheFactory; | |
10 | |
11 import de.intevation.gnv.artifacts.ressource.RessourceFactory; | |
12 | |
13 import de.intevation.gnv.geobackend.base.Result; | |
14 | |
15 import de.intevation.gnv.geobackend.base.query.QueryExecutor; | |
16 import de.intevation.gnv.geobackend.base.query.QueryExecutorFactory; | |
17 | |
18 import de.intevation.gnv.geobackend.base.query.exception.QueryException; | |
19 | |
20 import de.intevation.gnv.state.describedata.MinMaxDescribeData; | |
21 | |
22 import de.intevation.gnv.state.exception.StateException; | |
23 | |
24 import de.intevation.gnv.utils.InputValidator; | |
25 | |
26 import java.io.OutputStream; | 3 import java.io.OutputStream; |
27 | |
28 import java.util.ArrayList; | 4 import java.util.ArrayList; |
29 import java.util.Collection; | 5 import java.util.Collection; |
30 import java.util.HashMap; | 6 import java.util.HashMap; |
31 import java.util.Iterator; | 7 import java.util.Iterator; |
32 import java.util.List; | 8 import java.util.List; |
35 import javax.xml.xpath.XPathConstants; | 11 import javax.xml.xpath.XPathConstants; |
36 | 12 |
37 import net.sf.ehcache.Cache; | 13 import net.sf.ehcache.Cache; |
38 | 14 |
39 import org.apache.log4j.Logger; | 15 import org.apache.log4j.Logger; |
40 | |
41 import org.w3c.dom.Document; | 16 import org.w3c.dom.Document; |
42 import org.w3c.dom.Element; | 17 import org.w3c.dom.Element; |
43 import org.w3c.dom.Node; | 18 import org.w3c.dom.Node; |
44 import org.w3c.dom.NodeList; | 19 import org.w3c.dom.NodeList; |
20 | |
21 import de.intevation.artifactdatabase.Config; | |
22 import de.intevation.artifactdatabase.XMLUtils; | |
23 import de.intevation.artifacts.CallContext; | |
24 import de.intevation.artifacts.CallMeta; | |
25 import de.intevation.gnv.artifacts.cache.CacheFactory; | |
26 import de.intevation.gnv.artifacts.ressource.RessourceFactory; | |
27 import de.intevation.gnv.geobackend.base.Result; | |
28 import de.intevation.gnv.geobackend.base.query.QueryExecutor; | |
29 import de.intevation.gnv.geobackend.base.query.QueryExecutorFactory; | |
30 import de.intevation.gnv.geobackend.base.query.exception.QueryException; | |
31 import de.intevation.gnv.state.describedata.MinMaxDescribeData; | |
32 import de.intevation.gnv.state.exception.StateException; | |
33 import de.intevation.gnv.utils.InputValidator; | |
45 | 34 |
46 /** | 35 /** |
47 * This is the default implementation of <code>OutputState</code>. Artifacts | 36 * This is the default implementation of <code>OutputState</code>. Artifacts |
48 * having reached this state or a subclass of this state are able to produce | 37 * having reached this state or a subclass of this state are able to produce |
49 * some output (e.g. chart, histograms, statistic, etc). | 38 * some output (e.g. chart, histograms, statistic, etc). |
468 } | 457 } |
469 } | 458 } |
470 } else { | 459 } else { |
471 log.warn("No Inputdata given"); | 460 log.warn("No Inputdata given"); |
472 } | 461 } |
462 setHash(uuid); | |
473 } | 463 } |
474 | 464 |
475 | 465 |
476 public void out( | 466 public void out( |
477 String outputMode, | 467 String outputMode, |