Class RecursiveZipHandler

  • All Implemented Interfaces:
    io.vertx.core.Handler<ResourceNode>, DeltaHandler<ResourceNode>

    public class RecursiveZipHandler
    extends java.lang.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​(java.util.List<java.lang.String> subResourceNames, java.lang.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
      void handle​(ResourceNode node)  
      void storeXDeltaResponseHeader​(java.lang.String xDeltaResponseNumber)
      Checks if the given x-delta number from the response is not null and is higher then the already stored one.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RecursiveZipHandler

        public RecursiveZipHandler​(java.util.List<java.lang.String> subResourceNames,
                                   java.lang.String collectionName,
                                   DeltaHandler<ResourceNode> parentHandler)
        Creates an new instance of the RecursiveZipHandler.
        Parameters:
        subResourceNames - subResourceNames
        collectionName - collectionName
        parentHandler - parentHandler
    • Method Detail

      • handle

        public void handle​(ResourceNode node)
        Specified by:
        handle in interface io.vertx.core.Handler<ResourceNode>
      • storeXDeltaResponseHeader

        public void storeXDeltaResponseHeader​(java.lang.String xDeltaResponseNumber)
        Description copied from interface: DeltaHandler
        Checks 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:
        storeXDeltaResponseHeader in interface DeltaHandler<ResourceNode>
        Parameters:
        xDeltaResponseNumber - null or the current x-delta value from the response.