Skip to content

Commit

Permalink
feature(refactoring):xxx fixed commit id on docker hub image.
Browse files Browse the repository at this point in the history
  • Loading branch information
ds-mwesener committed Jun 18, 2024
1 parent 3b640d1 commit 507e7c9
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public RestTemplate edcRestTemplate(@Autowired EdcProperties edcProperties) {
.rootUri(edcProperties.getProviderEdcUrl())
.defaultHeader(EDC_API_KEY_HEADER_NAME, edcProperties.getApiAuthKey())
.setConnectTimeout(Duration.ofSeconds(10L))
.additionalInterceptors(new RequestResponseLoggingInterceptor())
// .additionalInterceptors(new RequestResponseLoggingInterceptor())
.setReadTimeout(Duration.ofSeconds(25L))
.build();
}
Expand All @@ -116,7 +116,7 @@ public RestTemplate edcDtrAssetRestTemplate(@Autowired EdcProperties edcProperti
.defaultHeader("Content-Type", MediaType.APPLICATION_JSON_VALUE)
.defaultHeader(EDC_API_KEY_HEADER_NAME, edcProperties.getApiAuthKey())
.setConnectTimeout(Duration.ofSeconds(10L))
.additionalInterceptors(new RequestResponseLoggingInterceptor())
// .additionalInterceptors(new RequestResponseLoggingInterceptor())
.setReadTimeout(Duration.ofSeconds(25L))
.build();
}
Expand All @@ -132,7 +132,7 @@ public RestTemplate digitalTwinRegistryCreateShellRestTemplate() {
public RestTemplate edcNotificationTemplate(@Autowired EdcProperties edcProperties) {
return new RestTemplateBuilder()
.defaultHeader(EDC_API_KEY_HEADER_NAME, edcProperties.getApiAuthKey())
.additionalInterceptors(new RequestResponseLoggingInterceptor())
// .additionalInterceptors(new RequestResponseLoggingInterceptor())
.build();
}

Expand Down Expand Up @@ -190,9 +190,9 @@ public RestTemplate edcClientRestTemplate() {
if (CollectionUtils.isEmpty(interceptors)) {
interceptors = new ArrayList<>();
}
interceptors.add(new RequestResponseLoggingInterceptor());
// interceptors.add(new RequestResponseLoggingInterceptor());
restTemplate.setErrorHandler(new DefaultResponseErrorHandler());
restTemplate.setInterceptors(interceptors);
// restTemplate.setInterceptors(interceptors);
return restTemplate;
}

Expand Down

0 comments on commit 507e7c9

Please sign in to comment.