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:07:00 GMT

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

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_r148408306
 
 

 ##########
 File path: components/camel-yql/src/main/java/org/apache/camel/component/yql/configuration/YqlConfiguration.java
 ##########
 @@ -0,0 +1,83 @@
+/**
+ * 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.configuration;
+
+import org.apache.camel.spi.Metadata;
+import org.apache.camel.spi.UriParam;
+import org.apache.camel.spi.UriParams;
+import org.apache.camel.spi.UriPath;
+
+@UriParams
+public class YqlConfiguration {
+
+    @UriPath
+    @Metadata(required = "true")
+    private String query;
+
+    @UriParam
+    private String format;
+
+    @UriParam
+    private boolean diagnostics;
+
+    @UriParam
+    private String callback;
+
+    public String getQuery() {
+        return query;
+    }
+
+    /**
+     * Set the YQL query
+     */
+    public void setQuery(final String query) {
+        this.query = query;
+    }
+
+    public String getFormat() {
+        return format;
+    }
+
+    /**
+     * Set the YQL format, xml or json
+     */
+    public void setFormat(final String format) {
+        this.format = format;
+    }
+
+    public boolean isDiagnostics() {
+        return diagnostics;
+    }
+
+    /**
+     * Set if diagnostics should be included in the query
+     */
+    public void setDiagnostics(final boolean diagnostics) {
+        this.diagnostics = diagnostics;
+    }
+
+    public String getCallback() {
+        return callback;
+    }
+
+    /**
+     * Set the callback function
 
 Review comment:
   Added a bunch of comments

----------------------------------------------------------------
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