oscerd commented on code in PR #21951: URL: https://github.com/apache/camel/pull/21951#discussion_r2923725029
##########
components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/MongoDbComponent.java:
##########
@@ -54,6 +58,9 @@ protected Endpoint createEndpoint(String uri, String
remaining, Map<String, Obje
MongoDbEndpoint endpoint = new MongoDbEndpoint(uri, this);
endpoint.setConnectionBean(remaining);
setProperties(endpoint, parameters);
+ if (endpoint.getSslContextParameters() == null) {
+
endpoint.setSslContextParameters(retrieveGlobalSslContextParameters());
+ }
Review Comment:
retrieveGlobalSslContextParameters() is a default method on the
SSLContextParametersAware interface that already checks
isUseGlobalSslContextParameters() internally:
```
default SSLContextParameters retrieveGlobalSslContextParameters() {
if (isUseGlobalSslContextParameters()) {
return getCamelContext().getSSLContextParameters();
}
return null;
}
```
If useGlobalSslContextParameters is false (the default), it returns null and
nothing changes.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
