Return-Path: X-Original-To: apmail-camel-commits-archive@www.apache.org Delivered-To: apmail-camel-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4E693E65D for ; Fri, 15 Feb 2013 15:24:21 +0000 (UTC) Received: (qmail 42854 invoked by uid 500); 15 Feb 2013 15:24:21 -0000 Delivered-To: apmail-camel-commits-archive@camel.apache.org Received: (qmail 42780 invoked by uid 500); 15 Feb 2013 15:24:20 -0000 Mailing-List: contact commits-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list commits@camel.apache.org Received: (qmail 42770 invoked by uid 99); 15 Feb 2013 15:24:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Feb 2013 15:24:20 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Feb 2013 15:24:15 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id C6AD123888D2 for ; Fri, 15 Feb 2013 15:23:54 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r850711 - in /websites/production/camel/content: base64.html book-dataformat-appendix.html book-in-one-page.html cache/main.pageCache camel-2110-release.html data-format-list.html data-format.html Date: Fri, 15 Feb 2013 15:23:54 -0000 To: commits@camel.apache.org From: buildbot@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130215152354.C6AD123888D2@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: buildbot Date: Fri Feb 15 15:23:53 2013 New Revision: 850711 Log: Production update by buildbot for camel Added: websites/production/camel/content/base64.html Modified: websites/production/camel/content/book-dataformat-appendix.html websites/production/camel/content/book-in-one-page.html websites/production/camel/content/cache/main.pageCache websites/production/camel/content/camel-2110-release.html websites/production/camel/content/data-format-list.html websites/production/camel/content/data-format.html Added: websites/production/camel/content/base64.html ============================================================================== --- websites/production/camel/content/base64.html (added) +++ websites/production/camel/content/base64.html Fri Feb 15 15:23:53 2013 @@ -0,0 +1,219 @@ + + + + + + + + + + + + + + + + + Apache Camel: Base64 + + + +
+
+
+
+
+
+
+
+
+
+
+ + + + + + + + + + + + +
+

Base64 Data Format

+

Available as of Camel 2.11
+The Base64 Data Format is a data format for base64 encoding and decoding.

+ +

Options

+
+
Option Default Description
lineLength 76 To specific a maximum line length for the encoded data.
lineSeparator \r\n The line separators to use.
urlSafe false Instead of emitting '+' and '/' we emit '-' and '_' respectively. urlSafe is only applied to encod e operations. Decoding seamlessly handles both modes.
+
+ + + +

Marshal

+

In this example we marshal the file content to base64 object.

+ +
+
+from("file://data.bin").marshal().base64().to("jms://myqueue");
+
+
+ +

Unmarshal

+

In this example we unmarshal the payload from the JMS queue to a byte[] object, before its processed by the newOrder processor.

+ +
+
+from("jms://queue/order").unmarshal().base64().processRef("newOrder");
+
+
+ +

Dependencies

+ +

To use Base64 in your Camel routes you need to add a dependency on camel-base64 which implements this data format.

+ +

If you use Maven you can just add the following to your pom.xml, substituting the version number for the latest & greatest release (see the download page for the latest versions).

+ +
+
+<dependency>
+  <groupId>org.apache.camel</groupId>
+  <artifactId>camel-base64</artifactId>
+  <version>2.11.0</version>
+</dependency>
+
+
+
+ +
+ + +
+
+
+
+
+
+ +
+
+
+© 2004-2011 The Apache Software Foundation. +
+Apache Camel, Camel, Apache, the Apache feather logo, and the Apache Camel project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners. +
+Graphic Design By Hiram +
+ + + + + + + + Modified: websites/production/camel/content/book-dataformat-appendix.html ============================================================================== --- websites/production/camel/content/book-dataformat-appendix.html (original) +++ websites/production/camel/content/book-dataformat-appendix.html Fri Feb 15 15:23:53 2013 @@ -130,7 +130,7 @@ Modified: websites/production/camel/content/book-in-one-page.html ============================================================================== --- websites/production/camel/content/book-in-one-page.html (original) +++ websites/production/camel/content/book-in-one-page.html Fri Feb 15 15:23:53 2013 @@ -11152,7 +11152,7 @@ This is done using the following syntax: Modified: websites/production/camel/content/cache/main.pageCache ============================================================================== Binary files - no diff available. Modified: websites/production/camel/content/camel-2110-release.html ============================================================================== --- websites/production/camel/content/camel-2110-release.html (original) +++ websites/production/camel/content/camel-2110-release.html Fri Feb 15 15:23:53 2013 @@ -101,17 +101,19 @@

New Components

- + +

DSL Changes

+
  • Added LoggingErrorHandler fluent builder to Scala DSL.

New Annotations

New Data Formats

-
  • camel-xmlrpc - support to marshal and unmarshal the request and response of xmlrpc.
+
  • camel-base64 - support base64 encoding and decoding.
  • camel-xmlrpc - support to marshal and unmarshal the request and response of xmlrpc.
+

New Languages

Modified: websites/production/camel/content/data-format-list.html ============================================================================== --- websites/production/camel/content/data-format-list.html (original) +++ websites/production/camel/content/data-format-list.html Fri Feb 15 15:23:53 2013 @@ -121,7 +121,7 @@ Modified: websites/production/camel/content/data-format.html ============================================================================== --- websites/production/camel/content/data-format.html (original) +++ websites/production/camel/content/data-format.html Fri Feb 15 15:23:53 2013 @@ -127,7 +127,7 @@