This is an automated email from the ASF dual-hosted git repository. pascalschumacher 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 7dc7bac Update documentation, as CamelContext#getProperties was replaced with CamelContext#getGlobalOptions in Camel 3. 7dc7bac is described below commit 7dc7bac2052f8547c93be193651649fb9d29f812 Author: Pascal Schumacher <pascalschumac...@gmx.net> AuthorDate: Sat Feb 15 19:26:47 2020 +0100 Update documentation, as CamelContext#getProperties was replaced with CamelContext#getGlobalOptions in Camel 3. --- components/camel-http/src/main/docs/http-component.adoc | 4 ++-- core/camel-core-engine/src/main/docs/eips/log-eip.adoc | 2 +- docs/components/modules/ROOT/pages/http-component.adoc | 4 ++-- ...ximum-cache-size-for-producercache-or-producertemplate.adoc | 2 +- ...igure-the-maximum-endpoint-cache-size-for-camelcontext.adoc | 2 +- ...-i-enable-streams-when-debug-logging-messages-in-camel.adoc | 2 +- ...set-the-max-chars-when-debug-logging-messages-in-camel.adoc | 2 +- docs/user-manual/modules/ROOT/pages/log-eip.adoc | 2 +- docs/user-manual/modules/ROOT/pages/stream-caching.adoc | 10 +++++----- 9 files changed, 15 insertions(+), 15 deletions(-) diff --git a/components/camel-http/src/main/docs/http-component.adoc b/components/camel-http/src/main/docs/http-component.adoc index d177386..70239b8 100644 --- a/components/camel-http/src/main/docs/http-component.adoc +++ b/components/camel-http/src/main/docs/http-component.adoc @@ -415,8 +415,8 @@ only from the CamelContext or URI. + [source,java] --------------------------------------------------------------- - context.getProperties().put("http.proxyHost", "172.168.18.9"); - context.getProperties().put("http.proxyPort", "8080"); + context.getGlobalOptions().put("http.proxyHost", "172.168.18.9"); + context.getGlobalOptions().put("http.proxyPort", "8080"); --------------------------------------------------------------- Spring XML diff --git a/core/camel-core-engine/src/main/docs/eips/log-eip.adoc b/core/camel-core-engine/src/main/docs/eips/log-eip.adoc index 86e0e3f..91b27d7 100644 --- a/core/camel-core-engine/src/main/docs/eips/log-eip.adoc +++ b/core/camel-core-engine/src/main/docs/eips/log-eip.adoc @@ -131,7 +131,7 @@ By default the log name is the route id. If you want to use a different log name You can configure a global log name that is used instead of the route id, eg [source,java] ---- -camelContext.getProperties().put(Exchange.LOG_EIP_NAME, "com.foo.myapp"); +camelContext.getGlobalOptions().put(Exchange.LOG_EIP_NAME, "com.foo.myapp"); ---- And in XML diff --git a/docs/components/modules/ROOT/pages/http-component.adoc b/docs/components/modules/ROOT/pages/http-component.adoc index 7f1c0fd..a7df943 100644 --- a/docs/components/modules/ROOT/pages/http-component.adoc +++ b/docs/components/modules/ROOT/pages/http-component.adoc @@ -416,8 +416,8 @@ only from the CamelContext or URI. + [source,java] --------------------------------------------------------------- - context.getProperties().put("http.proxyHost", "172.168.18.9"); - context.getProperties().put("http.proxyPort", "8080"); + context.getGlobalOptions().put("http.proxyHost", "172.168.18.9"); + context.getGlobalOptions().put("http.proxyPort", "8080"); --------------------------------------------------------------- Spring XML diff --git a/docs/user-manual/modules/ROOT/pages/faq/how-do-i-configure-the-default-maximum-cache-size-for-producercache-or-producertemplate.adoc b/docs/user-manual/modules/ROOT/pages/faq/how-do-i-configure-the-default-maximum-cache-size-for-producercache-or-producertemplate.adoc index 79d05ea..79890f8 100644 --- a/docs/user-manual/modules/ROOT/pages/faq/how-do-i-configure-the-default-maximum-cache-size-for-producercache-or-producertemplate.adoc +++ b/docs/user-manual/modules/ROOT/pages/faq/how-do-i-configure-the-default-maximum-cache-size-for-producercache-or-producertemplate.adoc @@ -10,7 +10,7 @@ You can configure the default maximum cache size by setting the [source,java] ---- -getCamelContext().getProperties().put(Exchange.MAXIMUM_CACHE_POOL_SIZE, "50"); +getCamelContext().getGlobalOptions().put(Exchange.MAXIMUM_CACHE_POOL_SIZE, "50"); ---- And in Spring XML its done as: diff --git a/docs/user-manual/modules/ROOT/pages/faq/how-do-i-configure-the-maximum-endpoint-cache-size-for-camelcontext.adoc b/docs/user-manual/modules/ROOT/pages/faq/how-do-i-configure-the-maximum-endpoint-cache-size-for-camelcontext.adoc index fe93983..ad46ff0 100644 --- a/docs/user-manual/modules/ROOT/pages/faq/how-do-i-configure-the-maximum-endpoint-cache-size-for-camelcontext.adoc +++ b/docs/user-manual/modules/ROOT/pages/faq/how-do-i-configure-the-maximum-endpoint-cache-size-for-camelcontext.adoc @@ -15,7 +15,7 @@ xref:camelcontext.adoc[CamelContext]. [source,java] ---- -getCamelContext().getProperties().put(Exchange.MAXIMUM_ENDPOINT_CACHE_SIZE, "500"); +getCamelContext().getGlobalOptions().put(Exchange.MAXIMUM_ENDPOINT_CACHE_SIZE, "500"); ---- You need to configure this before xref:camelcontext.adoc[CamelContext] diff --git a/docs/user-manual/modules/ROOT/pages/faq/how-do-i-enable-streams-when-debug-logging-messages-in-camel.adoc b/docs/user-manual/modules/ROOT/pages/faq/how-do-i-enable-streams-when-debug-logging-messages-in-camel.adoc index fee776d..8c6bbe9 100644 --- a/docs/user-manual/modules/ROOT/pages/faq/how-do-i-enable-streams-when-debug-logging-messages-in-camel.adoc +++ b/docs/user-manual/modules/ROOT/pages/faq/how-do-i-enable-streams-when-debug-logging-messages-in-camel.adoc @@ -33,7 +33,7 @@ You add to the Camel properties the flag to log streams. [source,java] ---- - context.getProperties().put(Exchange.LOG_DEBUG_BODY_STREAMS, "true"); + context.getGlobalOptions().put(Exchange.LOG_DEBUG_BODY_STREAMS, "true"); ---- Notice default is `false`. diff --git a/docs/user-manual/modules/ROOT/pages/faq/how-do-i-set-the-max-chars-when-debug-logging-messages-in-camel.adoc b/docs/user-manual/modules/ROOT/pages/faq/how-do-i-set-the-max-chars-when-debug-logging-messages-in-camel.adoc index 9afa828..aaf06c9 100644 --- a/docs/user-manual/modules/ROOT/pages/faq/how-do-i-set-the-max-chars-when-debug-logging-messages-in-camel.adoc +++ b/docs/user-manual/modules/ROOT/pages/faq/how-do-i-set-the-max-chars-when-debug-logging-messages-in-camel.adoc @@ -35,7 +35,7 @@ chars: [source,java] ---- - context.getProperties().put(Exchange.LOG_DEBUG_BODY_MAX_CHARS, "500"); + context.getGlobalOptions().put(Exchange.LOG_DEBUG_BODY_MAX_CHARS, "500"); ---- [[HowdoIsetthemaxcharswhendebugloggingmessagesinCamel-CustomizingfromSpringDSL]] diff --git a/docs/user-manual/modules/ROOT/pages/log-eip.adoc b/docs/user-manual/modules/ROOT/pages/log-eip.adoc index 9d55abe..18ecb14 100644 --- a/docs/user-manual/modules/ROOT/pages/log-eip.adoc +++ b/docs/user-manual/modules/ROOT/pages/log-eip.adoc @@ -132,7 +132,7 @@ By default the log name is the route id. If you want to use a different log name You can configure a global log name that is used instead of the route id, eg [source,java] ---- -camelContext.getProperties().put(Exchange.LOG_EIP_NAME, "com.foo.myapp"); +camelContext.getGlobalOptions().put(Exchange.LOG_EIP_NAME, "com.foo.myapp"); ---- And in XML diff --git a/docs/user-manual/modules/ROOT/pages/stream-caching.adoc b/docs/user-manual/modules/ROOT/pages/stream-caching.adoc index 721c3ba..ce69d9f 100644 --- a/docs/user-manual/modules/ROOT/pages/stream-caching.adoc +++ b/docs/user-manual/modules/ROOT/pages/stream-caching.adoc @@ -147,11 +147,11 @@ You set these properties on the `CamelContext` as shown below, where we use a 1 [source,java] ---- -context.getProperties().put(CachedOutputStream.TEMP_DIR, "/tmp/cachedir"); -context.getProperties().put(CachedOutputStream.THRESHOLD, "1048576"); -context.getProperties().put(CachedOutputStream.BUFFER_SIZE, "131072"); +context.getGlobalOptions().put(CachedOutputStream.TEMP_DIR, "/tmp/cachedir"); +context.getGlobalOptions().put(CachedOutputStream.THRESHOLD, "1048576"); +context.getGlobalOptions().put(CachedOutputStream.BUFFER_SIZE, "131072"); // to enable encryption using RC4 -// context.getProperties().put(CachedOutputStream.CIPHER_TRANSFORMATION, "RC4"); +// context.getGlobalOptions().put(CachedOutputStream.CIPHER_TRANSFORMATION, "RC4"); ---- And in XML you do: @@ -176,7 +176,7 @@ You can disable spooling to disk by setting a threshold of 0 or a negative value [source,java] ---- // disable spooling to disk -context.getProperties().put(CachedOutputStream.THRESHOLD, "-1"); +context.getGlobalOptions().put(CachedOutputStream.THRESHOLD, "-1"); ---- And in XML you do: