[unifi] Use createHttpClient (#14474)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This commit is contained in:
parent
1c35ebcd4e
commit
884b5e9e83
|
@ -50,9 +50,7 @@ public class UniFiThingHandlerFactory extends BaseThingHandlerFactory {
|
||||||
|
|
||||||
@Activate
|
@Activate
|
||||||
public UniFiThingHandlerFactory(@Reference final HttpClientFactory httpClientFactory) {
|
public UniFiThingHandlerFactory(@Reference final HttpClientFactory httpClientFactory) {
|
||||||
// [wip] mgb: disabled due to missing common name attributes with certs
|
httpClient = httpClientFactory.createHttpClient(BINDING_ID, new SslContextFactory.Client(true));
|
||||||
// this.httpClient = httpClientFactory.getCommonHttpClient();
|
|
||||||
httpClient = new HttpClient(new SslContextFactory.Client(true));
|
|
||||||
try {
|
try {
|
||||||
httpClient.start();
|
httpClient.start();
|
||||||
} catch (final Exception e) {
|
} catch (final Exception e) {
|
||||||
|
|
Loading…
Reference in New Issue