Class ZipExtractHandler


  • public class ZipExtractHandler
    extends Object
    Enables you to directly browse into a zip file and get the underlying resource.
    GET /gateleen/zips/111111.zip/this/is/my/resource
    Author:
    https://github.com/ljucam [Mario Ljuca]
    • Constructor Detail

      • ZipExtractHandler

        public ZipExtractHandler​(io.vertx.core.http.HttpClient selfClient)
        Creates a new instance of the ZipExtractHandler.
        Parameters:
        selfClient -
    • Method Detail

      • handle

        public boolean handle​(io.vertx.core.http.HttpServerRequest req)
        If we have a zip resource with a given path, we will handle the request, otherwise not.
        Parameters:
        req -
        Returns:
        true if request is handled, otherwise false
      • performGETRequest

        protected void performGETRequest​(io.vertx.core.http.HttpServerRequest req,
                                         String zipUrl,
                                         String insidePath)
        Performs the initial GET request of the zip resource.
        Parameters:
        req -
        zipUrl -
        insidePath -