From 1a0f7abd972f0a50b98299da4f680a0ecfc33217 Mon Sep 17 00:00:00 2001 From: tlenz Date: Tue, 24 Jan 2017 11:51:57 +0100 Subject: Add debug logs for connection- and read-timeouts --- .../moa/spss/server/config/ConfigurationPartsBuilder.java | 9 +++++++-- .../moa/spss/server/config/ConfigurationProvider.java | 8 ++++++-- 2 files changed, 13 insertions(+), 4 deletions(-) (limited to 'moaSig') diff --git a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/config/ConfigurationPartsBuilder.java b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/config/ConfigurationPartsBuilder.java index 1b47013..5f3f670 100644 --- a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/config/ConfigurationPartsBuilder.java +++ b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/config/ConfigurationPartsBuilder.java @@ -421,9 +421,9 @@ public class ConfigurationPartsBuilder { } /** - * Returns the digest method algorithm name. + * Get the connection timeout to set-up a network connection * - * @return The digest method algorithm name from the configuration. + * @return timeout in milliseconds [ms] */ public int getConnectionTimeout() { @@ -445,6 +445,11 @@ public class ConfigurationPartsBuilder { return defaultConnectionTimeout * 1000; } + /** + * Get the timeout to receive data from a network connection that is already open + * + * @return timeout in milliseconds [ms] + */ public int getReadTimeout() { String connectionTimeout = getElementValue(getConfigElem(), READ_TIMEOUT_XPATH_, "30"); diff --git a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/config/ConfigurationProvider.java b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/config/ConfigurationProvider.java index 79ef1d2..3e074a2 100644 --- a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/config/ConfigurationProvider.java +++ b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/config/ConfigurationProvider.java @@ -380,8 +380,12 @@ public class ConfigurationProvider keyGroupMappings = builder.buildKeyGroupMappings(keyGroups, ANONYMOUS_ISSUER_SERIAL); - connectionTimeout = builder.getConnectionTimeout(); - readTimeout = builder.getReadTimeout(); + this.connectionTimeout = builder.getConnectionTimeout(); + Logger.debug("Set 'Connection-Timeout' to " + String.valueOf(this.connectionTimeout) + "[ms]"); + + this.readTimeout = builder.getReadTimeout(); + Logger.debug("Set 'Read-Timeout' to " + String.valueOf(this.readTimeout) + "[ms]"); + pdfAsConfiguration = builder.getPDFASConfiguration(); adesFormResults = builder.getAdesFormResult(); xadesVersion = builder.getXAdESVersion(); -- cgit v1.2.3