Skip to content

Commit

Permalink
Merge pull request #94 from pagopa/feature/PN-9088
Browse files Browse the repository at this point in the history
  • Loading branch information
masciale89 authored Dec 6, 2024
2 parents 159260f + 83f7667 commit 074ebef
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* (C)2023 */
/* (C)2024 */
package it.pagopa.tech.lollipop.consumer.assertion.client.simple;

import java.time.Duration;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
Expand All @@ -17,4 +18,8 @@ public class AssertionSimpleClientConfig {
@Builder.Default private String assertionRequestEndpoint = "/assertions";

@Builder.Default private String subscriptionKey = "FakeSubscriptionKey";

private Duration readTimeout;

private Duration connectionTimeout;
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* (C)2023 */
/* (C)2024 */
package it.pagopa.tech.lollipop.consumer.assertion.client.simple.internal;

import static java.nio.charset.StandardCharsets.UTF_8;
Expand Down Expand Up @@ -68,8 +68,8 @@ public ApiClient(AssertionSimpleClientConfig config) {
this.mapper = createDefaultObjectMapper();
updateBaseUri(config.getBaseUri());
interceptor = t -> t.header("Ocp-Apim-Subscription-Key", config.getSubscriptionKey());
readTimeout = null;
connectTimeout = null;
readTimeout = config.getReadTimeout();
connectTimeout = config.getConnectionTimeout();
responseInterceptor = null;
asyncResponseInterceptor = null;
this.assertionRequestEndpoint = config.getAssertionRequestEndpoint();
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ repositories {
}

allprojects {
version = '1.0.0-RC5'
version = '1.0.0-RC6'
group = 'it.pagopa.tech.lollipop-consumer-java-sdk'
sourceCompatibility = '11'
targetCompatibility = '11'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* (C)2023 */
/* (C)2024 */
package it.pagopa.tech.lollipop.consumer.idp.client.simple;

import java.time.Duration;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Builder;
Expand All @@ -22,4 +23,8 @@ public class IdpCertSimpleClientConfig {
@Builder.Default private String idpKeysCieEndpoint = "/idp-keys/cie";

@Builder.Default private String idpKeysSpidEndpoint = "/idp-keys/spid";

private Duration readTimeout;

private Duration connectionTimeout;
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* (C)2022-2023 */
/* (C)2024 */
package it.pagopa.tech.lollipop.consumer.idp.client.simple.internal;

import static java.nio.charset.StandardCharsets.UTF_8;
Expand Down Expand Up @@ -72,8 +72,8 @@ public ApiClient(IdpCertSimpleClientConfig config) {
this.xmlMapper = createDefaultXmlMapper();
updateBaseUri(config.getBaseUri());
interceptor = null;
readTimeout = null;
connectTimeout = null;
readTimeout = config.getReadTimeout();
connectTimeout = config.getConnectionTimeout();
responseInterceptor = null;
asyncResponseInterceptor = null;
this.idpKeysCieEndpoint = config.getIdpKeysCieEndpoint();
Expand Down

0 comments on commit 074ebef

Please sign in to comment.