Package org.swisspush.gateleen.expansion
Class ZipExtractHandler
- java.lang.Object
-
- org.swisspush.gateleen.expansion.ZipExtractHandler
-
public class ZipExtractHandler extends java.lang.ObjectEnables 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 booleanhandle(io.vertx.core.http.HttpServerRequest req)If we have a zip resource with a given path, we will handle the request, otherwise not.protected voidperformGETRequest(io.vertx.core.http.HttpServerRequest req, java.lang.String zipUrl, java.lang.String insidePath)Performs the initial GET request of the zip resource.
-
-
-
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-
-
-