summaryrefslogtreecommitdiff
path: root/src/main/java/at/gv/util/config
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/gv/util/config')
-rw-r--r--src/main/java/at/gv/util/config/EgovUtilConfiguration.java3
-rw-r--r--src/main/java/at/gv/util/config/EgovUtilPropertiesConfiguration.java15
2 files changed, 17 insertions, 1 deletions
diff --git a/src/main/java/at/gv/util/config/EgovUtilConfiguration.java b/src/main/java/at/gv/util/config/EgovUtilConfiguration.java
index 216e1f5..47b7b63 100644
--- a/src/main/java/at/gv/util/config/EgovUtilConfiguration.java
+++ b/src/main/java/at/gv/util/config/EgovUtilConfiguration.java
@@ -27,6 +27,9 @@ import at.gv.util.xsd.szr.pvp.PvpTokenType;
*/
public interface EgovUtilConfiguration {
+ String getConfigurationValue(String key);
+ String getConfigurationValue(String key, String defaultValue);
+
JaxWsSSLConfiguration getMOASPSSsslConfiguration();
JaxWsSSLConfiguration getMOAIDsslConfiguration();
JaxWsSSLConfiguration getMOAZSsslConfiguration();
diff --git a/src/main/java/at/gv/util/config/EgovUtilPropertiesConfiguration.java b/src/main/java/at/gv/util/config/EgovUtilPropertiesConfiguration.java
index 66fa155..9693e0a 100644
--- a/src/main/java/at/gv/util/config/EgovUtilPropertiesConfiguration.java
+++ b/src/main/java/at/gv/util/config/EgovUtilPropertiesConfiguration.java
@@ -108,7 +108,20 @@ public class EgovUtilPropertiesConfiguration implements EgovUtilConfiguration {
ersbsslConfiguration = new JaxWsSSLConfigurationPropertiesImpl(this.props, this.configDir, "egovutil.ersb");
}
- public JaxWsSSLConfiguration getMOASPSSsslConfiguration() {
+
+ @Override
+ public String getConfigurationValue(String key) {
+ return this.props.getProperty(key);
+
+ }
+
+ @Override
+ public String getConfigurationValue(String key, String defaultValue) {
+ return this.props.getProperty(key, defaultValue);
+
+ }
+
+ public JaxWsSSLConfiguration getMOASPSSsslConfiguration() {
return moaSPSSsslConfiguration;
}