camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [08/10] camel git commit: Component docs
Date Wed, 06 Jan 2016 16:46:14 GMT
Component docs


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

Branch: refs/heads/camel-2.16.x
Commit: dfa52384898aed50dda47013d99ae3ff5fcf1cea
Parents: 2fc8255
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Wed Jan 6 14:36:10 2016 +0100
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Wed Jan 6 17:43:41 2016 +0100

----------------------------------------------------------------------
 .../camel/component/box/BoxConfiguration.java   | 31 +++++---------------
 .../apache/camel/component/box/BoxEndpoint.java |  4 ++-
 2 files changed, 11 insertions(+), 24 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/dfa52384/components/camel-box/src/main/java/org/apache/camel/component/box/BoxConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-box/src/main/java/org/apache/camel/component/box/BoxConfiguration.java
b/components/camel-box/src/main/java/org/apache/camel/component/box/BoxConfiguration.java
index 278a52b..f52973c 100644
--- a/components/camel-box/src/main/java/org/apache/camel/component/box/BoxConfiguration.java
+++ b/components/camel-box/src/main/java/org/apache/camel/component/box/BoxConfiguration.java
@@ -38,49 +38,34 @@ public class BoxConfiguration {
 
     @UriPath @Metadata(required = "true")
     private BoxApiName apiName;
-
     @UriPath @Metadata(required = "true")
     private String methodName;
-
     @UriParam
     private String clientId;
-
     @UriParam
     private String clientSecret;
-
-    @UriParam
+    @UriParam(label = "security")
     private IAuthSecureStorage authSecureStorage;
-
-    @UriParam
+    @UriParam(label = "security")
     private String userName;
-
-    @UriParam
+    @UriParam(label = "security")
     private String userPassword;
-
-    @UriParam
+    @UriParam(label = "advanced")
     private OAuthRefreshListener refreshListener;
-
     @UriParam
     private boolean revokeOnShutdown;
-
     @UriParam
     private String sharedLink;
-
     @UriParam
     private String sharedPassword;
-
-    @UriParam
+    @UriParam(label = "advanced")
     private IBoxConfig boxConfig;
-
-    @UriParam
+    @UriParam(label = "advanced")
     private BoxConnectionManagerBuilder connectionManagerBuilder;
-
-    @UriParam
+    @UriParam(label = "advanced")
     private Map<String, Object> httpParams;
-
-    @UriParam
+    @UriParam(label = "security")
     private SSLContextParameters sslContextParameters;
-
     @UriParam(defaultValue = "30")
     private int loginTimeout = 30;
 

http://git-wip-us.apache.org/repos/asf/camel/blob/dfa52384/components/camel-box/src/main/java/org/apache/camel/component/box/BoxEndpoint.java
----------------------------------------------------------------------
diff --git a/components/camel-box/src/main/java/org/apache/camel/component/box/BoxEndpoint.java
b/components/camel-box/src/main/java/org/apache/camel/component/box/BoxEndpoint.java
index 89219d8..7e568c8 100644
--- a/components/camel-box/src/main/java/org/apache/camel/component/box/BoxEndpoint.java
+++ b/components/camel-box/src/main/java/org/apache/camel/component/box/BoxEndpoint.java
@@ -39,7 +39,9 @@ import org.apache.camel.util.component.ApiMethodPropertiesHelper;
 /**
  * Represents a Box endpoint.
  */
-@UriEndpoint(scheme = "box", title = "Box", syntax = "box:apiName/methodName", consumerClass
= BoxConsumer.class, consumerPrefix = "consumer", label = "api,file,cloud")
+@UriEndpoint(scheme = "box", title = "Box", syntax = "box:apiName/methodName", consumerClass
= BoxConsumer.class, consumerPrefix = "consumer", label = "api,file,cloud",
+        lenientProperties = true)
+// need to be lenient as the box component has a bunch of generated configuration classes
that lacks documentation
 public class BoxEndpoint extends AbstractApiEndpoint<BoxApiName, BoxConfiguration>
{
 
     private static final String SHARED_LINK_PROPERTY = "sharedLink";


Mime
View raw message