You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by co...@apache.org on 2019/05/24 19:39:25 UTC
[camel] 03/21: Avoid writing out Californium.properties
This is an automated email from the ASF dual-hosted git repository.
coheigea pushed a commit to branch camel-2.x
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 97fd0e7a07c2fafff97a2d37e4eef69067aea3c4
Author: Colm O hEigeartaigh <co...@apache.org>
AuthorDate: Wed Apr 10 12:36:46 2019 +0100
Avoid writing out Californium.properties
---
.../camel-coap/src/main/java/org/apache/camel/coap/CoAPComponent.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/components/camel-coap/src/main/java/org/apache/camel/coap/CoAPComponent.java b/components/camel-coap/src/main/java/org/apache/camel/coap/CoAPComponent.java
index dbd382b..40e2c20 100644
--- a/components/camel-coap/src/main/java/org/apache/camel/coap/CoAPComponent.java
+++ b/components/camel-coap/src/main/java/org/apache/camel/coap/CoAPComponent.java
@@ -45,6 +45,7 @@ import org.apache.camel.util.URISupport;
import org.apache.camel.util.jsse.KeyStoreParameters;
import org.eclipse.californium.core.CoapServer;
import org.eclipse.californium.core.network.CoapEndpoint;
+import org.eclipse.californium.core.network.config.NetworkConfig;
import org.eclipse.californium.scandium.DTLSConnector;
import org.eclipse.californium.scandium.config.DtlsConnectorConfig;
import org.slf4j.Logger;
@@ -74,7 +75,9 @@ public class CoAPComponent extends UriEndpointComponent implements RestConsumerF
}
if (server == null) {
CoapEndpoint.Builder coapBuilder = new CoapEndpoint.Builder();
+ NetworkConfig config = NetworkConfig.createStandardWithoutFile();
InetSocketAddress address = new InetSocketAddress(port);
+ coapBuilder.setNetworkConfig(config);
if (keyStoreParameters != null) {
DtlsConnectorConfig.Builder builder = new DtlsConnectorConfig.Builder();