aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/gv/egiz/moazs/repository/RedisDeliveryRepository.java11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/main/java/at/gv/egiz/moazs/repository/RedisDeliveryRepository.java b/src/main/java/at/gv/egiz/moazs/repository/RedisDeliveryRepository.java
index 68e96d9..159d168 100644
--- a/src/main/java/at/gv/egiz/moazs/repository/RedisDeliveryRepository.java
+++ b/src/main/java/at/gv/egiz/moazs/repository/RedisDeliveryRepository.java
@@ -4,7 +4,6 @@ import at.gv.egiz.moazs.scheme.Marshaller;
import at.gv.egiz.moazs.scheme.MsgResponse;
import at.gv.zustellung.app2mzs.xsd.DeliveryRequestType;
import at.gv.zustellung.app2mzs.xsd.ObjectFactory;
-import org.apache.tools.ant.filters.StringInputStream;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
@@ -50,15 +49,7 @@ public class RedisDeliveryRepository implements DeliveryRepository {
@Override
public Optional<DeliveryRequestType> retrieveDeliveryRequest(String appDeliveryID) {
- String serializedRequest = hashOperations.get(KEY, appDeliveryID);
-
- if (serializedRequest == null) {
- return Optional.empty();
- }
-
- var stream = new StringInputStream(serializedRequest);
- var request = (JAXBElement<DeliveryRequestType>) marshaller.unmarshallXml(stream);
- return Optional.of(request.getValue());
+ throw new UnsupportedOperationException(NOT_IMPLEMENTED_MESSAGE);
}
@Override