view flys-artifacts/doc/conf/artifacts/gaugedischargecurve.xml @ 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 8c51c43e59ca
children 319565a48182
line wrap: on
line source
<?xml version="1.0" encoding="UTF-8"?>
<artifact name="gaugedischargecurve">
    <states>
         <state id="state.gaugedischargecurve.static" description="state.gaugedischargecurve.static" state="de.intevation.flys.artifacts.states.StaticState">
            <data name="river" type="String" />
            <data name="reference_gauge" type="Long" />
            <data name="gauge_name" type="String" />
            <outputmodes>
                <outputmode name="discharge_curve" description="output.discharge_curve" type="chart">
                    <facets>
                        <facet name="gauge_discharge_curve"/>
                    </facets>
                </outputmode>
                <outputmode name="computed_dischargecurve_at_export" description="output.computed_dischargecurve_at_export" mime-type="text/plain" type="export">
                    <facets>
                        <facet name="at" description="facet.gauge_discharge_curve_export.at"/>
                    </facets>
                </outputmode>
            </outputmodes>
         </state>
    </states>
</artifact>

http://dive4elements.wald.intevation.org