aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-08-28 09:24:36 +0200
committerChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-08-28 09:24:36 +0200
commit0a2e84daf88b908f1580168c3d6fdc28ba904a33 (patch)
tree0b697ca8889c2940110a23f3b8978dc954fd1acd /src/main
parentb612d671bdf74f112fc02bd9f39fb0e4b1aec501 (diff)
downloadmoa-zs-0a2e84daf88b908f1580168c3d6fdc28ba904a33.tar.gz
moa-zs-0a2e84daf88b908f1580168c3d6fdc28ba904a33.tar.bz2
moa-zs-0a2e84daf88b908f1580168c3d6fdc28ba904a33.zip
Remove Dependency to Apache Ant
Diffstat (limited to 'src/main')
-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