You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2016/12/08 14:12:41 UTC
[08/16] camel git commit: Fixed invalid component json schema
discovered by mvn camel:validate
Fixed invalid component json schema discovered by mvn camel:validate
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/99eafcb9
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/99eafcb9
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/99eafcb9
Branch: refs/heads/master
Commit: 99eafcb9b1069e601fdfb2dbd9de85f9b07fb121
Parents: bfdc671
Author: Claus Ibsen <da...@apache.org>
Authored: Thu Dec 8 14:48:18 2016 +0100
Committer: Claus Ibsen <da...@apache.org>
Committed: Thu Dec 8 14:48:18 2016 +0100
----------------------------------------------------------------------
.../camel/component/gridfs/GridFsConsumer.java | 1 -
.../camel/component/gridfs/GridFsEndpoint.java | 10 ++------
.../camel/component/gridfs/QueryStrategy.java | 25 ++++++++++++++++++++
3 files changed, 27 insertions(+), 9 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/99eafcb9/components/camel-mongodb-gridfs/src/main/java/org/apache/camel/component/gridfs/GridFsConsumer.java
----------------------------------------------------------------------
diff --git a/components/camel-mongodb-gridfs/src/main/java/org/apache/camel/component/gridfs/GridFsConsumer.java b/components/camel-mongodb-gridfs/src/main/java/org/apache/camel/component/gridfs/GridFsConsumer.java
index bfce711..6df4391 100644
--- a/components/camel-mongodb-gridfs/src/main/java/org/apache/camel/component/gridfs/GridFsConsumer.java
+++ b/components/camel-mongodb-gridfs/src/main/java/org/apache/camel/component/gridfs/GridFsConsumer.java
@@ -31,7 +31,6 @@ import com.mongodb.util.JSON;
import org.apache.camel.Exchange;
import org.apache.camel.Processor;
-import org.apache.camel.component.gridfs.GridFsEndpoint.QueryStrategy;
import org.apache.camel.impl.DefaultConsumer;
/**
http://git-wip-us.apache.org/repos/asf/camel/blob/99eafcb9/components/camel-mongodb-gridfs/src/main/java/org/apache/camel/component/gridfs/GridFsEndpoint.java
----------------------------------------------------------------------
diff --git a/components/camel-mongodb-gridfs/src/main/java/org/apache/camel/component/gridfs/GridFsEndpoint.java b/components/camel-mongodb-gridfs/src/main/java/org/apache/camel/component/gridfs/GridFsEndpoint.java
index 13aa862..cb8f686 100644
--- a/components/camel-mongodb-gridfs/src/main/java/org/apache/camel/component/gridfs/GridFsEndpoint.java
+++ b/components/camel-mongodb-gridfs/src/main/java/org/apache/camel/component/gridfs/GridFsEndpoint.java
@@ -38,14 +38,8 @@ import org.slf4j.LoggerFactory;
*/
@UriEndpoint(scheme = "gridfs", title = "MongoDBGridFS", syntax = "gridfs:connectionBean", label = "database,nosql")
public class GridFsEndpoint extends DefaultEndpoint {
-
- public enum QueryStrategy {
- TimeStamp,
- PersistentTimestamp,
- FileAttribute,
- TimeStampAndFileAttribute,
- PersistentTimestampAndFileAttribute
- };
+
+ ;
public static final String GRIDFS_OPERATION = "gridfs.operation";
public static final String GRIDFS_METADATA = "gridfs.metadata";
public static final String GRIDFS_CHUNKSIZE = "gridfs.chunksize";
http://git-wip-us.apache.org/repos/asf/camel/blob/99eafcb9/components/camel-mongodb-gridfs/src/main/java/org/apache/camel/component/gridfs/QueryStrategy.java
----------------------------------------------------------------------
diff --git a/components/camel-mongodb-gridfs/src/main/java/org/apache/camel/component/gridfs/QueryStrategy.java b/components/camel-mongodb-gridfs/src/main/java/org/apache/camel/component/gridfs/QueryStrategy.java
new file mode 100644
index 0000000..9b29f2a
--- /dev/null
+++ b/components/camel-mongodb-gridfs/src/main/java/org/apache/camel/component/gridfs/QueryStrategy.java
@@ -0,0 +1,25 @@
+/**
+ * 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.gridfs;
+
+public enum QueryStrategy {
+ TimeStamp,
+ PersistentTimestamp,
+ FileAttribute,
+ TimeStampAndFileAttribute,
+ PersistentTimestampAndFileAttribute
+}