Component docs
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/aead21aa
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/aead21aa
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/aead21aa
Branch: refs/heads/camel-2.16.x
Commit: aead21aaa0f20f00a4ffa5cc31eb570e3eb5cd63
Parents: 8c49ea9
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Wed Jan 6 19:15:14 2016 +0100
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Wed Jan 6 19:16:42 2016 +0100
----------------------------------------------------------------------
.../java/org/apache/camel/component/jcr/JcrEndpoint.java | 2 +-
.../org/apache/camel/component/jcr/JcrConsumerTest.java | 11 ++---------
2 files changed, 3 insertions(+), 10 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/aead21aa/components/camel-jcr/src/main/java/org/apache/camel/component/jcr/JcrEndpoint.java
----------------------------------------------------------------------
diff --git a/components/camel-jcr/src/main/java/org/apache/camel/component/jcr/JcrEndpoint.java
b/components/camel-jcr/src/main/java/org/apache/camel/component/jcr/JcrEndpoint.java
index 6a37d78..ca9bb5d 100644
--- a/components/camel-jcr/src/main/java/org/apache/camel/component/jcr/JcrEndpoint.java
+++ b/components/camel-jcr/src/main/java/org/apache/camel/component/jcr/JcrEndpoint.java
@@ -45,7 +45,7 @@ public class JcrEndpoint extends DefaultEndpoint {
@UriPath @Metadata(required = "true")
private String host;
- @UriPath @Metadata(required = "true")
+ @UriPath
private String base;
@UriParam
private String username;
http://git-wip-us.apache.org/repos/asf/camel/blob/aead21aa/components/camel-jcr/src/test/java/org/apache/camel/component/jcr/JcrConsumerTest.java
----------------------------------------------------------------------
diff --git a/components/camel-jcr/src/test/java/org/apache/camel/component/jcr/JcrConsumerTest.java
b/components/camel-jcr/src/test/java/org/apache/camel/component/jcr/JcrConsumerTest.java
index 01dcb1f..65a8ad0 100644
--- a/components/camel-jcr/src/test/java/org/apache/camel/component/jcr/JcrConsumerTest.java
+++ b/components/camel-jcr/src/test/java/org/apache/camel/component/jcr/JcrConsumerTest.java
@@ -39,9 +39,6 @@ public class JcrConsumerTest extends JcrRouteTestSupport {
private static final Logger LOG = LoggerFactory.getLogger(JcrConsumerTest.class);
private String absPath = "/home/test";
- private int eventTypes = Event.NODE_ADDED;
- private boolean deep = true;
- private boolean noLocal;
@Test
public void testJcrConsumer() throws Exception {
@@ -104,12 +101,8 @@ public class JcrConsumerTest extends JcrRouteTestSupport {
return new RouteBuilder() {
@Override
public void configure() throws Exception {
- String uri = "jcr://user:pass@repository";
- uri += absPath;
- uri += "?eventTypes=" + eventTypes;
- uri += "&deep=" + deep;
- uri += "&noLocal=" + noLocal;
- from(uri).to("direct:a");
+ from("jcr://user:pass@repository/home/test?eventTypes=1&deep=true&noLocal=false")
+ .to("direct:a");
}
};
}
|