annotate flys-artifacts/src/main/java/de/intevation/flys/exports/CrossSectionInfoGenerator.java @ 4488:5041105d2edd

Check if response code from GGInA is 200 OK Only parse the GGInA response if the status code is 200 OK. This improves the error message if GGInA is not available and shows the real reason instead of a JDOM error while parsing the response.
author Björn Ricks <bjoern.ricks@intevation.de>
date Wed, 14 Nov 2012 10:36:21 +0100
parents da4d8631fc46
children
rev   line source
1126
da4d8631fc46 Add CrossSectionInfoGenerator.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
1 package de.intevation.flys.exports;
da4d8631fc46 Add CrossSectionInfoGenerator.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
2
da4d8631fc46 Add CrossSectionInfoGenerator.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
3
da4d8631fc46 Add CrossSectionInfoGenerator.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
4 /**
da4d8631fc46 Add CrossSectionInfoGenerator.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
5 * A ChartInfoGenerator that generates meta information for specific cross
da4d8631fc46 Add CrossSectionInfoGenerator.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
6 * sections.
da4d8631fc46 Add CrossSectionInfoGenerator.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
7 */
da4d8631fc46 Add CrossSectionInfoGenerator.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
8 public class CrossSectionInfoGenerator extends ChartInfoGenerator {
da4d8631fc46 Add CrossSectionInfoGenerator.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
9
da4d8631fc46 Add CrossSectionInfoGenerator.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
10 public CrossSectionInfoGenerator() {
da4d8631fc46 Add CrossSectionInfoGenerator.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
11 super(new CrossSectionGenerator());
da4d8631fc46 Add CrossSectionInfoGenerator.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
12 }
da4d8631fc46 Add CrossSectionInfoGenerator.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
13 }
da4d8631fc46 Add CrossSectionInfoGenerator.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
14 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org