Remove unusied org.eclipse.hawkbit.HawkbitServerProperties (#1979)

_release_notes_

Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
Avgustin Marinov
2024-11-08 17:18:59 +02:00
committed by GitHub
parent 56c548e474
commit 6dec398cb9
6 changed files with 11 additions and 94 deletions

View File

@@ -61,7 +61,7 @@ public class HawkbitClient {
log.trace("REST API call failed!", e);
return e;
};
private final HawkbitServer hawkBitServerProperties;
private final HawkbitServer hawkBitServer;
private final Client client;
private final Encoder encoder;
@@ -72,20 +72,20 @@ public class HawkbitClient {
private final BiFunction<Tenant, Controller, RequestInterceptor> requestInterceptorFn;
public HawkbitClient(
final HawkbitServer hawkBitServerProperties,
final HawkbitServer hawkBitServer,
final Client client, final Encoder encoder, final Decoder decoder, final Contract contract) {
this(hawkBitServerProperties, client, encoder, decoder, contract, null, null);
this(hawkBitServer, client, encoder, decoder, contract, null, null);
}
/**
* Customizers gets default ones and could
*/
public HawkbitClient(
final HawkbitServer hawkBitServerProperties,
final HawkbitServer hawkBitServer,
final Client client, final Encoder encoder, final Decoder decoder, final Contract contract,
final ErrorDecoder errorDecoder,
final BiFunction<Tenant, Controller, RequestInterceptor> requestInterceptorFn) {
this.hawkBitServerProperties = hawkBitServerProperties;
this.hawkBitServer = hawkBitServer;
this.client = client;
this.encoder = encoder;
this.decoder = decoder;
@@ -112,7 +112,7 @@ public class HawkbitClient {
.requestInterceptor(requestInterceptorFn.apply(tenant, controller))
.target(serviceType,
controller == null ?
hawkBitServerProperties.getMgmtUrl() :
hawkBitServerProperties.getDdiUrl());
hawkBitServer.getMgmtUrl() :
hawkBitServer.getDdiUrl());
}
}