Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/state/OutputStateBase.java @ 480:211cad2fb5ba
Rebased "Horizonalschnitte" to own state class to break from the not
well fitting TimeSeriesOutputState.
gnv-artifacts/trunk@552 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sun, 17 Jan 2010 12:22:56 +0000 |
parents | 8975de9d7483 |
children | cef17cc90fd0 |
comparison
equal
deleted
inserted
replaced
479:d47b478e662b | 480:211cad2fb5ba |
---|---|
1 /** | 1 /** |
2 * | 2 * |
3 */ | 3 */ |
4 package de.intevation.gnv.state; | 4 package de.intevation.gnv.state; |
5 | 5 |
6 import de.intevation.artifactdatabase.Config; | |
7 | |
8 import de.intevation.artifacts.CallContext; | |
9 import de.intevation.artifacts.CallMeta; | |
10 | |
11 import de.intevation.gnv.artifacts.cache.CacheFactory; | |
12 | |
13 import de.intevation.gnv.artifacts.ressource.RessourceFactory; | |
14 | |
15 import de.intevation.gnv.geobackend.base.Result; | |
16 | |
17 import de.intevation.gnv.geobackend.base.query.QueryExecutor; | |
18 import de.intevation.gnv.geobackend.base.query.QueryExecutorFactory; | |
19 | |
20 import de.intevation.gnv.geobackend.base.query.exception.QueryException; | |
21 | |
22 import de.intevation.gnv.state.exception.StateException; | |
23 | |
6 import java.io.OutputStream; | 24 import java.io.OutputStream; |
25 | |
7 import java.util.ArrayList; | 26 import java.util.ArrayList; |
8 import java.util.Collection; | 27 import java.util.Collection; |
9 import java.util.Locale; | 28 import java.util.Locale; |
10 | 29 |
11 | |
12 import org.apache.log4j.Logger; | 30 import org.apache.log4j.Logger; |
31 | |
13 import org.w3c.dom.Document; | 32 import org.w3c.dom.Document; |
14 import org.w3c.dom.Element; | 33 import org.w3c.dom.Element; |
15 import org.w3c.dom.Node; | 34 import org.w3c.dom.Node; |
16 import org.w3c.dom.NodeList; | 35 import org.w3c.dom.NodeList; |
17 | 36 |
18 import de.intevation.artifactdatabase.Config; | |
19 | |
20 import de.intevation.artifacts.CallMeta; | |
21 import de.intevation.artifacts.CallContext; | |
22 | |
23 import de.intevation.gnv.artifacts.cache.CacheFactory; | |
24 import de.intevation.gnv.artifacts.ressource.RessourceFactory; | |
25 import de.intevation.gnv.geobackend.base.Result; | |
26 import de.intevation.gnv.geobackend.base.query.QueryExecutor; | |
27 import de.intevation.gnv.geobackend.base.query.QueryExecutorFactory; | |
28 import de.intevation.gnv.geobackend.base.query.exception.QueryException; | |
29 import de.intevation.gnv.state.exception.StateException; | |
30 | |
31 /** | 37 /** |
32 * @author Tim Englich <tim.englich@intevation.de> | 38 * @author Tim Englich <tim.englich@intevation.de> |
33 * | 39 * |
34 */ | 40 */ |
35 public abstract class OutputStateBase extends StateBase implements | 41 public abstract class OutputStateBase |
36 OutputState { | 42 extends StateBase |
43 implements OutputState | |
44 { | |
45 public static final String XPATH_OUTPUT_MODE = | |
46 "/art:action/art:out/@name"; | |
47 | |
48 public static final String XPATH_MIME_TYPE = | |
49 "/art:action/art:out/art:mime-type/@value"; | |
37 | 50 |
38 /** | 51 /** |
39 * The UID of this Class | 52 * The UID of this Class |
40 */ | 53 */ |
41 private static final long serialVersionUID = -1718732895737303823L; | 54 private static final long serialVersionUID = -1718732895737303823L; |
127 @Override | 140 @Override |
128 public void initialize(String uuid, CallMeta callMeta) | 141 public void initialize(String uuid, CallMeta callMeta) |
129 throws StateException { | 142 throws StateException { |
130 } | 143 } |
131 | 144 |
132 public void out(Document format, Collection<InputData> inputData, | 145 public void out( |
133 OutputStream outputStream, String uuid, CallMeta callMeta) | 146 Document format, |
134 throws StateException { | 147 Collection<InputData> inputData, |
148 OutputStream outputStream, | |
149 String uuid, | |
150 CallMeta callMeta | |
151 ) | |
152 throws StateException | |
153 { | |
135 } | 154 } |
136 | 155 |
137 /** | 156 /** |
138 * @see de.intevation.gnv.state.OutputState#out(java.lang.String, | 157 * @see de.intevation.gnv.state.OutputState#out(java.lang.String, |
139 * java.util.Collection, java.io.OutputStream) | 158 * java.util.Collection, java.io.OutputStream) |