camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-11959) New component YQL
Date Wed, 01 Nov 2017 23:02:00 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-11959?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16234911#comment-16234911
] 

ASF GitHub Bot commented on CAMEL-11959:
----------------------------------------

carlphilipp commented on a change in pull request #2070: CAMEL-11959: Add new camel-yql component
URL: https://github.com/apache/camel/pull/2070#discussion_r148407733
 
 

 ##########
 File path: components/camel-yql/src/main/java/org/apache/camel/component/yql/YqlComponent.java
 ##########
 @@ -0,0 +1,42 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.yql;
+
+import java.util.Map;
+import org.apache.camel.Endpoint;
+import org.apache.camel.component.yql.configuration.YqlConfiguration;
+import org.apache.camel.component.yql.configuration.YqlConfigurationValidator;
+import org.apache.camel.impl.DefaultComponent;
+
+public class YqlComponent extends DefaultComponent {
+
+    @Override
+    protected Endpoint createEndpoint(final String uri, final String remaining, final Map<String,
Object> parameters) throws Exception {
+        final YqlConfiguration configuration = new YqlConfiguration();
+        configuration.setQuery(remaining);
+        configuration.setFormat((String) parameters.getOrDefault("format", "json"));
 
 Review comment:
   Done

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> New component YQL
> -----------------
>
>                 Key: CAMEL-11959
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11959
>             Project: Camel
>          Issue Type: New Feature
>            Reporter: Carl-Philipp Harmant
>            Assignee: Carl-Philipp Harmant
>            Priority: Minor
>             Fix For: 2.21.0
>
>
> Add a new component, camel-yql that will allow to obtain data from YQL (Yahoo Query Language)

> https://developer.yahoo.com/yql/



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message