/**
* ============LICENSE_START=======================================================
- * org.onap.aai
+ * SPARKY (AAI UI service)
* ================================================================================
* Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
* Copyright © 2017-2018 Amdocs
* limitations under the License.
* ============LICENSE_END=========================================================
*/
-package org.onap.aai.sparky.config;
+package org.onap.aai.sparky.camel;
-import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
-import org.springframework.context.annotation.Configuration;
-import org.springframework.context.annotation.PropertySource;
+import org.apache.camel.spring.SpringRouteBuilder;
+import org.springframework.stereotype.Component;
-@Configuration
-@ConditionalOnProperty(value="sparky.ssl.enabled", havingValue = "true")
-@PropertySource("file:${CONFIG_HOME}/sparky-ssl-config.properties")
-public class SparkySslConfigLoader {
+@Component
+public class FilterAggregationRouter extends SpringRouteBuilder {
+
+ @Override
+ public void configure() throws Exception {
+
+ rest().post("/search/filterAggregation")
+ .to("bean:aggregateSummaryProcessor?method=getFilteredAggregation");
+
+ }
}