aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/gv
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/gv')
-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.");
}
}