Fix Java and Jetty deprecations (#10349)
Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
*/
|
||||
package org.openhab.binding.http.internal;
|
||||
|
||||
import static org.openhab.binding.http.internal.HttpBindingConstants.*;
|
||||
import static org.openhab.binding.http.internal.HttpBindingConstants.THING_TYPE_URL;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
@@ -59,8 +59,8 @@ public class HttpHandlerFactory extends BaseThingHandlerFactory
|
||||
@Activate
|
||||
public HttpHandlerFactory(@Reference HttpClientFactory httpClientFactory,
|
||||
@Reference HttpDynamicStateDescriptionProvider httpDynamicStateDescriptionProvider) {
|
||||
this.secureClient = new HttpClient(new SslContextFactory());
|
||||
this.insecureClient = new HttpClient(new SslContextFactory(true));
|
||||
this.secureClient = new HttpClient(new SslContextFactory.Client());
|
||||
this.insecureClient = new HttpClient(new SslContextFactory.Client(true));
|
||||
try {
|
||||
this.secureClient.start();
|
||||
this.insecureClient.start();
|
||||
|
||||
Reference in New Issue
Block a user