This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 9efc614e7f0 Update camel-configuration-utilities.adoc (#9337)
9efc614e7f0 is described below

commit 9efc614e7f06fc5d7f81a64570cc504dbddd196f
Author: Raymond Meester <raymondmees...@gmail.com>
AuthorDate: Sun Feb 12 13:03:19 2023 +0100

    Update camel-configuration-utilities.adoc (#9337)
    
    Changed the resource parameter and example as since 3.20.0 the resource is 
loaded by the ResourceLoader.
---
 .../modules/ROOT/pages/camel-configuration-utilities.adoc | 15 +++++----------
 1 file changed, 5 insertions(+), 10 deletions(-)

diff --git 
a/docs/user-manual/modules/ROOT/pages/camel-configuration-utilities.adoc 
b/docs/user-manual/modules/ROOT/pages/camel-configuration-utilities.adoc
index eb5b4b436ab..c532df50b52 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-configuration-utilities.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-configuration-utilities.adoc
@@ -224,14 +224,9 @@ The optional provider identifier for the provider used to 
create the
 KeyStores represented by this object's configuration. If omitted, the
 default look-up behavior is used.
 resource::
-This optional property represents the location of the key store resource
-to load the key store from. In some cases, the resource is omitted as
-the key store content is provided by other means. The loading of the
-resource, if provided, is attempted by treating the resource as a file
-path, a class path resource, and a URL in that order. An exception is
-thrown if the resource cannot be resolved to readable input stream using
-any of the above methods.
-
+Optional property to load the key store resource from a uri. By default the 
class path is used, otherwise 
+the uri needs to be specified. For example to use file path as a resource, the 
prefix file is needed (file:/path/to/keystore). 
+In some cases, the resource is omitted as the key store is provided by other 
means. 
 
 === FilterParameters
 
@@ -344,7 +339,7 @@ SSLContext.
 [source,java]
 -------------------------------------------------------------------
 KeyStoreParameters ksp = new KeyStoreParameters();
-ksp.setResource("/users/home/server/keystore.jks");
+ksp.setResource("file:/users/home/server/keystore.jks");
 ksp.setPassword("keystorePassword");
 
 KeyManagersParameters kmp = new KeyManagersParameters();
@@ -377,7 +372,7 @@ exclude any cipher suites that match the patterns:
 [source,java]
 -------------------------------------------------------------------
 KeyStoreParameters ksp = new KeyStoreParameters();
-ksp.setResource("/users/home/server/keystore.jks");
+ksp.setResource("file:/users/home/server/keystore.jks");
 ksp.setPassword("keystorePassword");
 
 KeyManagersParameters kmp = new KeyManagersParameters();

Reply via email to