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

nfilotto pushed a commit to branch camel-4.0.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-4.0.x by this push:
     new a0d5b100445 camel-netty - Fix doc about SSL configuration
a0d5b100445 is described below

commit a0d5b10044594cadebca92a8e35176e0100cc22b
Author: Nicolas Filotto <essob...@users.noreply.github.com>
AuthorDate: Fri Sep 1 19:14:38 2023 +0200

    camel-netty - Fix doc about SSL configuration
    
    ## Motivation
    
    [Someone from the 
community](https://stackoverflow.com/questions/76991186/cannot-resolve-method-setsslcontextparameters-in-nettycomponent)
 raised the fact that the code snippet describing how to configure SSL in the 
netty component is invalid/outdated and should be fixed.
    
    ## Modifications:
    
    * Set the SSL configuration from the `NettyConfiguration` instead of 
`NettyComponent`
---
 components/camel-netty/src/main/docs/netty-component.adoc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/camel-netty/src/main/docs/netty-component.adoc 
b/components/camel-netty/src/main/docs/netty-component.adoc
index e4606dfaf6c..e4e1926017b 100644
--- a/components/camel-netty/src/main/docs/netty-component.adoc
+++ b/components/camel-netty/src/main/docs/netty-component.adoc
@@ -237,7 +237,7 @@ SSLContextParameters scp = new SSLContextParameters();
 scp.setKeyManagers(kmp);
 
 NettyComponent nettyComponent = getContext().getComponent("netty", 
NettyComponent.class);
-nettyComponent.setSslContextParameters(scp);
+nettyComponent.getConfiguration().setSslContextParameters(scp);
 ----
 
 [[Netty-SpringDSLbasedconfigurationofendpoint]]

Reply via email to