CAMEL-7777 Added @UriParams to camel-github endpoints

Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/5593920a
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/5593920a
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/5593920a

Branch: refs/heads/master
Commit: 5593920a02d43b34b87a6703f3dee4a85f63ef48
Parents: 1a16d92
Author: Willem Jiang <willem.ji...@gmail.com>
Authored: Tue Sep 23 11:01:27 2014 +0800
Committer: Willem Jiang <willem.ji...@gmail.com>
Committed: Tue Sep 23 11:01:27 2014 +0800

----------------------------------------------------------------------
 .../org/apache/camel/component/jira/JIRAEndpoint.java  | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/5593920a/components/camel-jira/src/main/java/org/apache/camel/component/jira/JIRAEndpoint.java
----------------------------------------------------------------------
diff --git 
a/components/camel-jira/src/main/java/org/apache/camel/component/jira/JIRAEndpoint.java
 
b/components/camel-jira/src/main/java/org/apache/camel/component/jira/JIRAEndpoint.java
index 350307c..ec1199a 100644
--- 
a/components/camel-jira/src/main/java/org/apache/camel/component/jira/JIRAEndpoint.java
+++ 
b/components/camel-jira/src/main/java/org/apache/camel/component/jira/JIRAEndpoint.java
@@ -25,6 +25,9 @@ import org.apache.camel.component.jira.consumer.ConsumerType;
 import org.apache.camel.component.jira.consumer.NewCommentConsumer;
 import org.apache.camel.component.jira.consumer.NewIssueConsumer;
 import org.apache.camel.impl.DefaultEndpoint;
+import org.apache.camel.spi.UriEndpoint;
+import org.apache.camel.spi.UriParam;
+import org.apache.camel.spi.UriParams;
 
 /**
  * The endpoint encapsulates portions of the JIRA API, relying on the 
jira-rest-java-client SDK.
@@ -41,14 +44,16 @@ import org.apache.camel.impl.DefaultEndpoint;
  * - the types of payloads we're polling aren't typically large (plus, paging 
is available in the API)
  * - need to support apps running somewhere not publicly accessible where a 
webhook would fail
  */
+@UriParams
+@UriEndpoint(scheme = "jira")
 public class JIRAEndpoint extends DefaultEndpoint {
-
+    @UriParam
     private String serverUrl;
-
+    @UriParam
     private String username;
-
+    @UriParam
     private String password;
-
+    @UriParam
     private String jql;
 
     public JIRAEndpoint(String uri, JIRAComponent component) {

Reply via email to