diff options
author | Christof Rabensteiner <christof.rabensteiner@iaik.tugraz.at> | 2019-05-06 11:01:59 +0200 |
---|---|---|
committer | Christof Rabensteiner <christof.rabensteiner@iaik.tugraz.at> | 2019-05-06 11:14:15 +0200 |
commit | fefde1ad7592412007b9efed2b62cb403d3f6cac (patch) | |
tree | 8609a7605b1c881fc6ddd4977d1b0e55642c4896 /src/main | |
parent | 46a49767dc2e23f363bcff7d52e844adfc7b4b41 (diff) | |
download | moa-zs-fefde1ad7592412007b9efed2b62cb403d3f6cac.tar.gz moa-zs-fefde1ad7592412007b9efed2b62cb403d3f6cac.tar.bz2 moa-zs-fefde1ad7592412007b9efed2b62cb403d3f6cac.zip |
WIP tnvz integration
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/at/gv/egiz/moazs/TnvzClient.java | 3 | ||||
-rw-r--r-- | src/main/java/at/gv/egiz/moazs/pipeline/SameThreadDeliveryPipeline.java | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/at/gv/egiz/moazs/TnvzClient.java b/src/main/java/at/gv/egiz/moazs/TnvzClient.java index e892033..7b4e3f6 100644 --- a/src/main/java/at/gv/egiz/moazs/TnvzClient.java +++ b/src/main/java/at/gv/egiz/moazs/TnvzClient.java @@ -1,12 +1,13 @@ package at.gv.egiz.moazs; +import at.gv.zustellung.app2mzs.xsd.DeliveryRequestType.Sender; import at.gv.zustellung.app2mzs.xsd.DeliveryRequestType.Receiver; import org.springframework.stereotype.Component; @Component public class TnvzClient { - public boolean isAddressable(Receiver receiver) { + public boolean queryPerson(Sender sender, Receiver receiver) { return true; } diff --git a/src/main/java/at/gv/egiz/moazs/pipeline/SameThreadDeliveryPipeline.java b/src/main/java/at/gv/egiz/moazs/pipeline/SameThreadDeliveryPipeline.java index ef591ea..b309434 100644 --- a/src/main/java/at/gv/egiz/moazs/pipeline/SameThreadDeliveryPipeline.java +++ b/src/main/java/at/gv/egiz/moazs/pipeline/SameThreadDeliveryPipeline.java @@ -31,7 +31,7 @@ public class SameThreadDeliveryPipeline implements DeliveryPipeline { private void checkAddressability(DeliveryRequestType request) { if (request.getConfig().isPerformQueryPersonRequest()) { - if (!tnvzClient.isAddressable(request.getReceiver())) { + if (!tnvzClient.queryPerson(request.getReceiver())) { throw new RuntimeException("Receiver is not addressable."); } } |