diff options
author | Christof Rabensteiner <christof.rabensteiner@iaik.tugraz.at> | 2019-05-14 13:18:55 +0200 |
---|---|---|
committer | Christof Rabensteiner <christof.rabensteiner@iaik.tugraz.at> | 2019-05-14 13:18:55 +0200 |
commit | 870439300e7596d6833644ec9e6d1f38a1e0b6b5 (patch) | |
tree | 86ee96f87f3b691f1cbbbfba02b29d329c50b843 /src/main/java/at/gv/egiz/moazs/config | |
parent | f4af4f437ff79cb6e2a35fdfe87e8d952a70b685 (diff) | |
download | moa-zs-870439300e7596d6833644ec9e6d1f38a1e0b6b5.tar.gz moa-zs-870439300e7596d6833644ec9e6d1f38a1e0b6b5.tar.bz2 moa-zs-870439300e7596d6833644ec9e6d1f38a1e0b6b5.zip |
Implement Per-Field-Overriding of Configuration in Augmenter
- Rewrite DeliveryRequestAugmenter to allow per-field-overriding of
configuration parameters and add test suite.
- Mzs schema change: Move DeliveryRequest/Server into
DeliveryRequest/Config; Reason: DeliveryRequest/Config contains all
parameters exclusively needed by moazs to execute the delivery
request. The msg's server url belongs to this set of parameters.
- WIP: Add prototype implementation of MsgClient and move MsgClient to
dedicated package.
- Refactor: move TnvzClient to dedicated package.
Diffstat (limited to 'src/main/java/at/gv/egiz/moazs/config')
-rw-r--r-- | src/main/java/at/gv/egiz/moazs/config/DeliveryRequestAugmenterConfig.java | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/main/java/at/gv/egiz/moazs/config/DeliveryRequestAugmenterConfig.java b/src/main/java/at/gv/egiz/moazs/config/DeliveryRequestAugmenterConfig.java new file mode 100644 index 0000000..93615c4 --- /dev/null +++ b/src/main/java/at/gv/egiz/moazs/config/DeliveryRequestAugmenterConfig.java @@ -0,0 +1,31 @@ +package at.gv.egiz.moazs.config; + +import at.gv.zustellung.app2mzs.xsd.ConfigType; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; + +import static at.gv.zustellung.app2mzs.xsd.ConfigType.configTypeBuilder; +import static at.gv.zustellung.app2mzs.xsd.ServerType.serverTypeBuilder; + +@Configuration +public class DeliveryRequestAugmenterConfig { + + + @Value("${msg.default.url}") + private String zuseUrlID; + + @Bean + public ConfigType defaultMzsConfig() { + + var server = serverTypeBuilder() + .withZUSEUrlID(zuseUrlID) + .withX509(null) //todo load cert! + .build(); + + return configTypeBuilder() + .withPerformQueryPersonRequest(false) + .withServer(server) + .build(); + } +} |