You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2018/04/05 05:52:43 UTC
[camel] branch master updated: CAMEL-12422 Fixed language
declaration for code snippets in documentation
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new d2b65aa CAMEL-12422 Fixed language declaration for code snippets in documentation
d2b65aa is described below
commit d2b65aa02e391f63944d03dc2ef65ecb174dfc0c
Author: Fintan Bolton <fb...@redhat.com>
AuthorDate: Wed Apr 4 17:18:22 2018 +0200
CAMEL-12422 Fixed language declaration for code snippets in documentation
---
components/camel-csv/src/main/docs/csv-dataformat.adoc | 10 +++++-----
.../camel-mail/src/main/docs/mime-multipart-dataformat.adoc | 3 ---
.../src/main/docs/mongodb-gridfs-component.adoc | 5 +----
components/camel-snmp/src/main/docs/snmp-component.adoc | 4 ----
4 files changed, 6 insertions(+), 16 deletions(-)
diff --git a/components/camel-csv/src/main/docs/csv-dataformat.adoc b/components/camel-csv/src/main/docs/csv-dataformat.adoc
index bae6f16..6cd2d97 100644
--- a/components/camel-csv/src/main/docs/csv-dataformat.adoc
+++ b/components/camel-csv/src/main/docs/csv-dataformat.adoc
@@ -89,12 +89,12 @@ or this XML route definition
</route>
-------------------------------------------------------
+
then it will produce
-[source,java]
--------------------------------------------------------
+----
abc,123
--------------------------------------------------------
+----
### Unmarshalling a CSV message into a Java List
@@ -178,6 +178,7 @@ body.put("foo", "abc");
body.put("bar", 123);
-------------------------------------------------------
+
and this Java route definition
[source,java]
@@ -210,7 +211,6 @@ or this XML route definition
then it will produce
-[source,java]
-------------------------------------------------------
abc|123
-------------------------------------------------------
@@ -358,7 +358,7 @@ If you use Maven you can just add the following to your pom.xml,
substituting the version number for the latest and greatest release (see
the download page for the latest versions).
-[source,java]
+[source,xml]
-------------------------------------
<dependency>
<groupId>org.apache.camel</groupId>
diff --git a/components/camel-mail/src/main/docs/mime-multipart-dataformat.adoc b/components/camel-mail/src/main/docs/mime-multipart-dataformat.adoc
index d7cf6a9..49fbe26 100644
--- a/components/camel-mail/src/main/docs/mime-multipart-dataformat.adoc
+++ b/components/camel-mail/src/main/docs/mime-multipart-dataformat.adoc
@@ -116,7 +116,6 @@ Message with the following message Camel headers:
*Camel Message Headers*
-[source,java]
-------------------------------------------------------------------------------
Content-Type=multipart/mixed; \n boundary="----=_Part_0_14180567.1447658227051"
Message-Id=<...>
@@ -129,7 +128,6 @@ The message body will be:
*Camel Message Body*
-[source,java]
----------------------------------------------------------------
------=_Part_0_14180567.1447658227051
Content-Type: application/octet-stream
@@ -158,7 +156,6 @@ original message starting with "x-" and the header with name "included":
*Camel Message Body*
-[source,java]
----------------------------------------------------------------
Message-ID: <...>
MIME-Version: 1.0
diff --git a/components/camel-mongodb-gridfs/src/main/docs/mongodb-gridfs-component.adoc b/components/camel-mongodb-gridfs/src/main/docs/mongodb-gridfs-component.adoc
index d51fef7..6b005a4 100644
--- a/components/camel-mongodb-gridfs/src/main/docs/mongodb-gridfs-component.adoc
+++ b/components/camel-mongodb-gridfs/src/main/docs/mongodb-gridfs-component.adoc
@@ -18,7 +18,6 @@ for this component:
### URI format
-[source,java]
------------------------------------------------------------------------------
mongodb-gridfs:connectionBean?database=databaseName&bucket=bucketName[&moreOptions...]
------------------------------------------------------------------------------
@@ -121,8 +120,7 @@ The following route defined in Spring XML executes the operation
#### count
Returns the total number of file in the collection, returning an Integer
-as the OUT message body. +
- +
+as the OUT message body.
[source,java]
---------------------------------------------------------------------------------
@@ -146,7 +144,6 @@ Integer count = template.requestBodyAndHeaders("direct:count", query, headers);
Returns an Reader that lists all the filenames and their IDs in a tab
separated stream.
-[source,java]
----------------------------------------------------------------------------------
// from("direct:listAll").to("mongodb-gridfs?database=tickets&operation=listAll");
Reader result = template.requestBodyAndHeader("direct:listAll", "irrelevantBody");
diff --git a/components/camel-snmp/src/main/docs/snmp-component.adoc b/components/camel-snmp/src/main/docs/snmp-component.adoc
index 9298f77..e80f465 100644
--- a/components/camel-snmp/src/main/docs/snmp-component.adoc
+++ b/components/camel-snmp/src/main/docs/snmp-component.adoc
@@ -21,7 +21,6 @@ for this component:
### URI format
-[source,java]
--------------------------------
snmp://hostname[:port][?Options]
--------------------------------
@@ -118,7 +117,6 @@ Given the situation, that I poll for the following OIDs:
*OIDs*
-[source,java]
-------------------------
1.3.6.1.2.1.1.3.0
1.3.6.1.2.1.25.3.2.1.5.1
@@ -167,14 +165,12 @@ requested...be prepared.
Polling a remote device:
-[source,java]
---------------------------------------------------------------------
snmp:192.168.178.23:161?protocol=udp&type=POLL&oids=1.3.6.1.2.1.1.5.0
---------------------------------------------------------------------
Setting up a trap receiver (*Note that no OID info is needed here!*):
-[source,java]
-----------------------------------------
snmp:127.0.0.1:162?protocol=udp&type=TRAP
-----------------------------------------
--
To stop receiving notification emails like this one, please contact
acosentino@apache.org.