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 2017/01/02 09:28:30 UTC

[2/2] camel git commit: CAMEL-10667: Add tarFile to Java DSL

CAMEL-10667: Add tarFile to Java DSL


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

Branch: refs/heads/camel-2.18.x
Commit: ec33df5a769d4499ab09f9a508fa1f5dc7193013
Parents: 0b47ab9
Author: Claus Ibsen <da...@apache.org>
Authored: Mon Jan 2 10:25:09 2017 +0100
Committer: Claus Ibsen <da...@apache.org>
Committed: Mon Jan 2 10:28:19 2017 +0100

----------------------------------------------------------------------
 .../org/apache/camel/builder/DataFormatClause.java     | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/ec33df5a/camel-core/src/main/java/org/apache/camel/builder/DataFormatClause.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/builder/DataFormatClause.java b/camel-core/src/main/java/org/apache/camel/builder/DataFormatClause.java
index 9d48884..1aecbb2 100644
--- a/camel-core/src/main/java/org/apache/camel/builder/DataFormatClause.java
+++ b/camel-core/src/main/java/org/apache/camel/builder/DataFormatClause.java
@@ -51,6 +51,7 @@ import org.apache.camel.model.dataformat.SerializationDataFormat;
 import org.apache.camel.model.dataformat.SoapJaxbDataFormat;
 import org.apache.camel.model.dataformat.StringDataFormat;
 import org.apache.camel.model.dataformat.SyslogDataFormat;
+import org.apache.camel.model.dataformat.TarFileDataFormat;
 import org.apache.camel.model.dataformat.TidyMarkupDataFormat;
 import org.apache.camel.model.dataformat.XMLBeansDataFormat;
 import org.apache.camel.model.dataformat.XMLSecurityDataFormat;
@@ -1068,8 +1069,16 @@ public class DataFormatClause<T extends ProcessorDefinition<?>> {
         XMLSecurityDataFormat xsdf = new XMLSecurityDataFormat(secureTag, namespaces, secureTagContents, recipientKeyAlias, xmlCipherAlgorithm, 
                 keyCipherAlgorithm, keyOrTrustStoreParameters, keyPassword, digestAlgorithm);
         return dataFormat(xsdf);
-    }   
-    
+    }
+
+    /**
+     * Uses the Tar file data format
+     */
+    public T tarFile() {
+        TarFileDataFormat tfdf = new TarFileDataFormat();
+        return dataFormat(tfdf);
+    }
+
     /**
      * Uses the xmlBeans data format
      */