This is an automated email from the ASF dual-hosted git repository.
nfilotto pushed a commit to branch camel-3.20.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-3.20.x by this push:
new 3239790ec22 camel-netty - Fix doc about SSL configuration (#11283)
3239790ec22 is described below
commit 3239790ec229a2abb348196acfcc958bde9eca31
Author: Nicolas Filotto <[email protected]>
AuthorDate: Fri Sep 1 19:10:04 2023 +0200
camel-netty - Fix doc about SSL configuration (#11283)
## 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 aacaa9c99dc..dc23743fe22 100644
--- a/components/camel-netty/src/main/docs/netty-component.adoc
+++ b/components/camel-netty/src/main/docs/netty-component.adoc
@@ -236,7 +236,7 @@ SSLContextParameters scp = new SSLContextParameters();
scp.setKeyManagers(kmp);
NettyComponent nettyComponent = getContext().getComponent("netty",
NettyComponent.class);
-nettyComponent.setSslContextParameters(scp);
+nettyComponent.getConfiguration().setSslContextParameters(scp);
----
[[Netty-SpringDSLbasedconfigurationofendpoint]]