diff options
author | tlenz <thomas.lenz@egiz.gv.at> | 2017-01-24 11:51:57 +0100 |
---|---|---|
committer | tlenz <thomas.lenz@egiz.gv.at> | 2017-01-24 11:51:57 +0100 |
commit | 1a0f7abd972f0a50b98299da4f680a0ecfc33217 (patch) | |
tree | 217eaa8237de596bf190c149304826ebe184c851 /moaSig/moa-sig-lib/src/main/java/at/gv | |
parent | 8574f931c169248c67c3a5946351f9072628af46 (diff) | |
download | moa-sig-1a0f7abd972f0a50b98299da4f680a0ecfc33217.tar.gz moa-sig-1a0f7abd972f0a50b98299da4f680a0ecfc33217.tar.bz2 moa-sig-1a0f7abd972f0a50b98299da4f680a0ecfc33217.zip |
Add debug logs for connection- and read-timeouts
Diffstat (limited to 'moaSig/moa-sig-lib/src/main/java/at/gv')
2 files changed, 13 insertions, 4 deletions
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(); |