All Downloads are FREE. Search and download functionalities are using the official Maven repository.

s-api.rest.2.0.1-alpha.8.source-code.timeseries-api_v1_web.xml Maven / Gradle / Ivy

The newest version!
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:mvc="http://www.springframework.org/schema/mvc"
       xsi:schemaLocation="
        http://www.springframework.org/schema/beans
        http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
        http://www.springframework.org/schema/mvc
        http://www.springframework.org/schema/mvc/spring-mvc-4.2.xsd">

    <mvc:annotation-driven />

    <!--
        This bean description file injects the SPI implementation into the Web binding layer.
        Any change will corrupt the API Web layer. Custom implementation has to be defined
        by bean descriptions using the ref-ids associated below.
    -->

    <bean class="org.n52.web.v1.ctrl.ResourcesController">
        <property name="metadataService" ref="metadataService" />
    </bean>


    <bean class="org.n52.web.v1.ctrl.ParameterController" id="parameterController" abstract="true">
        <property name="metadataExtensions">
            <list>
                <bean class="org.n52.io.response.ext.LicenseExtension" />
            </list>
        </property>
    </bean>

    <bean class="org.n52.web.v1.ctrl.OfferingsParameterController" parent="parameterController">
        <property name="parameterService" ref="offeringParameterService" />
    </bean>

    <bean class="org.n52.web.v1.ctrl.ServicesParameterController" parent="parameterController">
        <property name="parameterService" ref="serviceParameterService" />
    </bean>

    <bean class="org.n52.web.v1.ctrl.CategoriesParameterController" parent="parameterController">
        <property name="parameterService" ref="categoryParameterService" />
    </bean>

    <bean class="org.n52.web.v1.ctrl.FeaturesParameterController" parent="parameterController">
        <property name="parameterService" ref="featureParameterService" />
    </bean>

    <bean class="org.n52.web.v1.ctrl.ProceduresParameterController" parent="parameterController">
        <property name="parameterService" ref="procedureParameterService" />
    </bean>

    <bean class="org.n52.web.v1.ctrl.PhenomenaParameterController" parent="parameterController">
        <property name="parameterService" ref="phenomenonParameterService" />
    </bean>

    <bean class="org.n52.web.v1.ctrl.StationsParameterController">
        <property name="parameterService" ref="stationParameterService" />
    </bean>

    <bean class="org.n52.web.v1.ctrl.TimeseriesMetadataController" parent="parameterController">
        <property name="serviceParameterService" ref="serviceParameterService" />
        <property name="parameterService" ref="timeseriesService" />
        <property name="metadataExtensions">
            <list merge="true">
                <bean class="org.n52.io.extension.v1.RenderingHintsExtension" />
                <bean class="org.n52.io.extension.v1.StatusIntervalsExtension" />
                <!--
                <bean class="org.n52.io.extension.v1.ResultTimeExtension">
                    <property name="resultTimeService" ref="resultTimeService"/>
                </bean>
                -->
            </list>
        </property>
    </bean>

    <bean class="org.n52.web.v1.ctrl.TimeseriesDataController">
        <property name="serviceParameterService" ref="serviceParameterService" />
        <property name="timeseriesMetadataService" ref="timeseriesService" />
        <property name="timeseriesDataService" ref="timeseriesService" />
        <property name="preRenderingTask" ref="preRenderingTask" />
        <!-- NOTE:
            - P1Y means always 356 days (leap years do have 366 days)
            - clients may extend the timespan a bit so allow a buffer
        -->
        <property name="requestIntervalRestriction" value="P367D" />
    </bean>

    <bean id="preRenderingTask" class="org.n52.io.PreRenderingTask"
          destroy-method="shutdownTask" factory-method="createTask">
        <property name="timeseriesMetadataService" ref="timeseriesService" />
        <property name="timeseriesDataService" ref="timeseriesService" />
        <property name="outputPath" value="generated/prerendered" />
        <property name="width" value="800" />
        <property name="height" value="500" />
        <property name="language" value="de" />
        <property name="showGrid" value="true" />
        <property name="periodInMinutes" value="1440" />
        <property name="enabled" value="false" />
    </bean>

    <bean class="org.n52.web.v1.ctrl.SearchController">
        <property name="searchService" ref="searchService"/>
    </bean>


</beans>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy