CAMEL-11529: Fixed wrong syntax in couchbase component.
Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/0982eedc Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/0982eedc Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/0982eedc Branch: refs/heads/master Commit: 0982eedcd3742b9934badb4c2c335e70032de2cd Parents: 4784bbf Author: Claus Ibsen <davscl...@apache.org> Authored: Mon Jul 10 22:21:52 2017 +0200 Committer: Claus Ibsen <davscl...@apache.org> Committed: Mon Jul 10 22:21:52 2017 +0200 ---------------------------------------------------------------------- .../camel-couchbase/src/main/docs/couchbase-component.adoc | 8 ++++---- .../apache/camel/component/couchbase/CouchbaseComponent.java | 2 -- .../apache/camel/component/couchbase/CouchbaseEndpoint.java | 5 +++-- 3 files changed, 7 insertions(+), 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/0982eedc/components/camel-couchbase/src/main/docs/couchbase-component.adoc ---------------------------------------------------------------------- diff --git a/components/camel-couchbase/src/main/docs/couchbase-component.adoc b/components/camel-couchbase/src/main/docs/couchbase-component.adoc index 01d9825..7f3b4b0 100644 --- a/components/camel-couchbase/src/main/docs/couchbase-component.adoc +++ b/components/camel-couchbase/src/main/docs/couchbase-component.adoc @@ -35,27 +35,27 @@ The Couchbase component has no options. // endpoint options: START The Couchbase endpoint is configured using URI syntax: - couchbase:url + couchbase:protocol:hostname:port with the following path and query parameters: -#### Path Parameters (2 parameters): +#### Path Parameters (3 parameters): [width="100%",cols="2,5,^1,2",options="header"] |======================================================================= | Name | Description | Default | Type | **protocol** | *Required* The protocol to use | | String | **hostname** | *Required* The hostname to use | | String +| **port** | The port number to use | 8091 | int |======================================================================= -#### Query Parameters (48 parameters): +#### Query Parameters (47 parameters): [width="100%",cols="2,5,^1,2",options="header"] |======================================================================= | Name | Description | Default | Type | **bucket** (common) | The bucket to use | | String | **key** (common) | The key to use | | String -| **port** (common) | The port number to use | 8091 | int | **bridgeErrorHandler** (consumer) | Allows for bridging the consumer to the Camel routing Error Handler which mean any exceptions occurred while the consumer is trying to pickup incoming messages or the likes will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions that will be logged at WARN or ERROR level and ignored. | false | boolean | **consumerProcessedStrategy** (consumer) | Define the consumer Processed strategy to use | none | String | **descending** (consumer) | Define if this operation is descending or not | false | boolean http://git-wip-us.apache.org/repos/asf/camel/blob/0982eedc/components/camel-couchbase/src/main/java/org/apache/camel/component/couchbase/CouchbaseComponent.java ---------------------------------------------------------------------- diff --git a/components/camel-couchbase/src/main/java/org/apache/camel/component/couchbase/CouchbaseComponent.java b/components/camel-couchbase/src/main/java/org/apache/camel/component/couchbase/CouchbaseComponent.java index 74f02c1..a47c6f9 100644 --- a/components/camel-couchbase/src/main/java/org/apache/camel/component/couchbase/CouchbaseComponent.java +++ b/components/camel-couchbase/src/main/java/org/apache/camel/component/couchbase/CouchbaseComponent.java @@ -24,11 +24,9 @@ import org.apache.camel.impl.DefaultComponent; /** * Couchbase component. */ - public class CouchbaseComponent extends DefaultComponent { public CouchbaseComponent() { - } public CouchbaseComponent(CamelContext context) { http://git-wip-us.apache.org/repos/asf/camel/blob/0982eedc/components/camel-couchbase/src/main/java/org/apache/camel/component/couchbase/CouchbaseEndpoint.java ---------------------------------------------------------------------- diff --git a/components/camel-couchbase/src/main/java/org/apache/camel/component/couchbase/CouchbaseEndpoint.java b/components/camel-couchbase/src/main/java/org/apache/camel/component/couchbase/CouchbaseEndpoint.java index b03a208..563c405 100644 --- a/components/camel-couchbase/src/main/java/org/apache/camel/component/couchbase/CouchbaseEndpoint.java +++ b/components/camel-couchbase/src/main/java/org/apache/camel/component/couchbase/CouchbaseEndpoint.java @@ -57,7 +57,7 @@ import static org.apache.camel.component.couchbase.CouchbaseConstants.DEFAULT_VI * Represents a Couchbase endpoint that can query Views with a Poll strategy * and/or produce various type of operations. */ -@UriEndpoint(firstVersion = "2.19.0", scheme = "couchbase", title = "Couchbase", syntax = "couchbase:url", consumerClass = CouchbaseConsumer.class, label = "database,nosql") +@UriEndpoint(firstVersion = "2.19.0", scheme = "couchbase", title = "Couchbase", syntax = "couchbase:protocol:hostname:port", consumerClass = CouchbaseConsumer.class, label = "database,nosql") public class CouchbaseEndpoint extends ScheduledPollEndpoint { @UriPath @@ -66,8 +66,9 @@ public class CouchbaseEndpoint extends ScheduledPollEndpoint { @UriPath @Metadata(required = "true") private String hostname; - @UriParam(defaultValue = "8091") + @UriPath(defaultValue = "8091") private int port; + @UriParam private String bucket;