Class ZipExtractHandler


  • public class ZipExtractHandler
    extends java.lang.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 Summary

      Constructors 
      Constructor Description
      ZipExtractHandler​(io.vertx.core.http.HttpClient selfClient)
      Creates a new instance of the ZipExtractHandler.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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.
      protected void performGETRequest​(io.vertx.core.http.HttpServerRequest req, java.lang.String zipUrl, java.lang.String insidePath)
      Performs the initial GET request of the zip resource.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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,
                                         java.lang.String zipUrl,
                                         java.lang.String insidePath)
        Performs the initial GET request of the zip resource.
        Parameters:
        req -
        zipUrl -
        insidePath -