From b20ce8edab2cbe947337f2194575f898277df938 Mon Sep 17 00:00:00 2001 From: Christof Rabensteiner Date: Wed, 3 Apr 2019 10:30:19 +0200 Subject: Add Stubs for RequestHandler and MZS2AppClient --- .../at/gv/egiz/moazs/DeliveryRequestHandler.java | 27 ++++++++++++++++++++++ src/main/java/at/gv/egiz/moazs/Mzs2AppClient.java | 13 +++++++++++ 2 files changed, 40 insertions(+) create mode 100644 src/main/java/at/gv/egiz/moazs/DeliveryRequestHandler.java create mode 100644 src/main/java/at/gv/egiz/moazs/Mzs2AppClient.java (limited to 'src/main/java/at') diff --git a/src/main/java/at/gv/egiz/moazs/DeliveryRequestHandler.java b/src/main/java/at/gv/egiz/moazs/DeliveryRequestHandler.java new file mode 100644 index 0000000..59325e3 --- /dev/null +++ b/src/main/java/at/gv/egiz/moazs/DeliveryRequestHandler.java @@ -0,0 +1,27 @@ +package at.gv.egiz.moazs; + +import at.gv.e_government.reference.namespace.moazs10.app2mzs_.DeliveryRequestType; +import at.gv.e_government.reference.namespace.moazs10.app2mzs_.DeliveryResponseType; +import org.springframework.stereotype.Component; + +import java.util.function.Function; + +@Component +public class DeliveryRequestHandler implements Function { + + + /** + * Handles the Delivery Request + * @param request + * @return response + */ + @Override + public DeliveryResponseType apply(DeliveryRequestType deliveryRequestType) { + + //check if DR is complete + + // + + return null; + } +} diff --git a/src/main/java/at/gv/egiz/moazs/Mzs2AppClient.java b/src/main/java/at/gv/egiz/moazs/Mzs2AppClient.java new file mode 100644 index 0000000..fbbe03c --- /dev/null +++ b/src/main/java/at/gv/egiz/moazs/Mzs2AppClient.java @@ -0,0 +1,13 @@ +package at.gv.egiz.moazs; + +import at.gv.e_government.reference.namespace.moazs10.app2mzs_.DeliveryResponseType; +import org.springframework.stereotype.Component; + +@Component +public class Mzs2AppClient { + + public void sendNotification(DeliveryResponseType response) { + + } + +} -- cgit v1.2.3