Package org.swisspush.gateleen.expansion
Class RecursiveZipHandler
- java.lang.Object
-
- org.swisspush.gateleen.expansion.RecursiveZipHandler
-
- All Implemented Interfaces:
io.vertx.core.Handler<ResourceNode>,DeltaHandler<ResourceNode>
public class RecursiveZipHandler extends Object implements DeltaHandler<ResourceNode>
A handler that allows to put all handeld Json Resources to a zip stream.- Author:
- https://github.com/ljucam [Mario Ljuca]
-
-
Constructor Summary
Constructors Constructor Description RecursiveZipHandler(List<String> subResourceNames, String collectionName, DeltaHandler<ResourceNode> parentHandler)Creates an new instance of the RecursiveZipHandler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandle(ResourceNode node)voidstoreXDeltaResponseHeader(String xDeltaResponseNumber)Checks if the given x-delta number from the response is not null and is higher then the already stored one.
-
-
-
Constructor Detail
-
RecursiveZipHandler
public RecursiveZipHandler(List<String> subResourceNames, String collectionName, DeltaHandler<ResourceNode> parentHandler)
Creates an new instance of the RecursiveZipHandler.- Parameters:
subResourceNames- subResourceNamescollectionName- collectionNameparentHandler- parentHandler
-
-
Method Detail
-
handle
public void handle(ResourceNode node)
- Specified by:
handlein interfaceio.vertx.core.Handler<ResourceNode>
-
storeXDeltaResponseHeader
public void storeXDeltaResponseHeader(String xDeltaResponseNumber)
Description copied from interface:DeltaHandlerChecks if the given x-delta number from the response is not null and is higher then the already stored one. If so the number is set otherwise not.- Specified by:
storeXDeltaResponseHeaderin interfaceDeltaHandler<ResourceNode>- Parameters:
xDeltaResponseNumber- null or the current x-delta value from the response.
-
-