aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
authorChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-05-06 11:01:59 +0200
committerChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-05-06 11:14:15 +0200
commitfefde1ad7592412007b9efed2b62cb403d3f6cac (patch)
tree8609a7605b1c881fc6ddd4977d1b0e55642c4896 /src/main/java/at
parent46a49767dc2e23f363bcff7d52e844adfc7b4b41 (diff)
downloadmoa-zs-fefde1ad7592412007b9efed2b62cb403d3f6cac.tar.gz
moa-zs-fefde1ad7592412007b9efed2b62cb403d3f6cac.tar.bz2
moa-zs-fefde1ad7592412007b9efed2b62cb403d3f6cac.zip
WIP tnvz integration
Diffstat (limited to 'src/main/java/at')
-rw-r--r--src/main/java/at/gv/egiz/moazs/TnvzClient.java3
-rw-r--r--src/main/java/at/gv/egiz/moazs/pipeline/SameThreadDeliveryPipeline.java2
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.");
}
}