Class JsonBatchProcessor
java.lang.Object
de.fraunhofer.iosb.ilt.frostserver.plugin.batchprocessing.json.JsonBatchProcessor
- All Implemented Interfaces:
Iterator<JsonBatchResultItem>
Streaming processor for JSON batch requests. JSON batch requests are much
simpler than multipart requests, since they are not nested.
-
Constructor Summary
ConstructorsConstructorDescriptionJsonBatchProcessor(Service service, ServiceRequest request, ServiceResponse response) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanhasNext()next()voidprocessRequest(boolean stream) processRequestItem(Service service, JsonBatchRequestItem requestItem) voidstoreEntityId(de.fraunhofer.iosb.ilt.frostserver.model.core.Entity entity, JsonBatchResultItem result, String requestId) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
JsonBatchProcessor
-
-
Method Details
-
processRequest
-
close
public void close() -
processNextRequest
public void processNextRequest() -
processRequestItem
-
storeEntityId
public void storeEntityId(de.fraunhofer.iosb.ilt.frostserver.model.core.Entity entity, JsonBatchResultItem result, String requestId) -
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<JsonBatchResultItem>
-
next
- Specified by:
nextin interfaceIterator<JsonBatchResultItem>
-