From 0a2e84daf88b908f1580168c3d6fdc28ba904a33 Mon Sep 17 00:00:00 2001 From: Christof Rabensteiner Date: Wed, 28 Aug 2019 09:24:36 +0200 Subject: Remove Dependency to Apache Ant --- .../at/gv/egiz/moazs/repository/RedisDeliveryRepository.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/main/java/at') 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 retrieveDeliveryRequest(String appDeliveryID) { - String serializedRequest = hashOperations.get(KEY, appDeliveryID); - - if (serializedRequest == null) { - return Optional.empty(); - } - - var stream = new StringInputStream(serializedRequest); - var request = (JAXBElement) marshaller.unmarshallXml(stream); - return Optional.of(request.getValue()); + throw new UnsupportedOperationException(NOT_IMPLEMENTED_MESSAGE); } @Override -- cgit v1.2.3