Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/state/OutputStateBase.java @ 725:dde7f51dbe1e
Improved exception handling while feeding an artifact.
gnv-artifacts/trunk@757 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Wed, 10 Mar 2010 13:27:14 +0000 |
parents | a94ed2755480 |
children | 9a828e5a2390 |
comparison
equal
deleted
inserted
replaced
724:9ba6bb85d6dd | 725:dde7f51dbe1e |
---|---|
1 /** | |
2 * | |
3 */ | |
4 package de.intevation.gnv.state; | 1 package de.intevation.gnv.state; |
5 | 2 |
6 import java.io.OutputStream; | 3 import java.io.OutputStream; |
7 import java.util.ArrayList; | 4 import java.util.ArrayList; |
8 import java.util.Collection; | 5 import java.util.Collection; |
34 import de.intevation.gnv.state.describedata.MinMaxDescribeData; | 31 import de.intevation.gnv.state.describedata.MinMaxDescribeData; |
35 import de.intevation.gnv.state.exception.StateException; | 32 import de.intevation.gnv.state.exception.StateException; |
36 import de.intevation.gnv.utils.InputValidator; | 33 import de.intevation.gnv.utils.InputValidator; |
37 | 34 |
38 /** | 35 /** |
39 * @author Tim Englich <tim.englich@intevation.de> | 36 * @author Tim Englich (tim.englich@intevation.de) |
37 * @author Ingo Weinzierl (ingo.weinzierl@intevation.de) | |
40 * | 38 * |
41 */ | 39 */ |
42 public abstract class OutputStateBase | 40 public abstract class OutputStateBase |
43 extends StateBase | 41 extends StateBase |
44 implements OutputState | 42 implements OutputState |
306 } | 304 } |
307 } | 305 } |
308 | 306 |
309 | 307 |
310 @Override | 308 @Override |
311 public void feed(Collection<InputData> inputData, String uuid) | 309 public Document feed( |
310 CallContext context, | |
311 Collection<InputData> inputData, | |
312 String uuid) | |
312 throws StateException | 313 throws StateException |
313 { | 314 { |
314 putInputData(inputData, uuid); | 315 putInputData(inputData, uuid); |
316 | |
317 return feedSuccess(); | |
315 } | 318 } |
316 | 319 |
317 /** | 320 /** |
318 * @see de.intevation.gnv.state.StateBase#putInputData(java.util.Collection, java.lang.String) | 321 * @see de.intevation.gnv.state.StateBase#putInputData(java.util.Collection, java.lang.String) |
319 */ | 322 */ |