This is an automated email from the ASF dual-hosted git repository.
nfilotto 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 b59c14f0590 camel-netty - Fix doc about SSL configuration
b59c14f0590 is described below
commit b59c14f0590ac12dc90cc2a0e4ce4662aade90a2
Author: Nicolas Filotto <[email protected]>
AuthorDate: Fri Sep 1 19:16:37 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]]