ZipDirectoryResponse
Configuration file |
sample_zip_directory_response.properties |
Class name |
com.ebd.hub.datawizard.customresp.ZipDirectoryResponse |
Description
Creates a ZIP file (with and without password) from file system files. Note: The class only uses the files specified in the parameters as input. The content of the Response itself is ignored.
Parameters
Parameter |
Description |
dir.delete |
If true, the top-level directory of the files specified in property path.pattern is deleted. Default: false. Note: The deletion of directories is not checked, because it might fail, for example, because another process already inserts new files, or the directories are not empty, because property zip.excludePattern was used. |
files.delete |
If true, the packed files and subdirectories are deleted. Default: true. Note: The deletion of directories is not checked, because it might fail, for example, because another process already inserts new files, or the directories are not empty, because property zip.excludePattern was used. |
folder.include |
If true, subfolders (and included files) in the directory of the specified files will be included in the ZIP file. Default: true. |
path.pattern |
Path and file pattern of the files to be packed. |
reuse.data |
If false, the data generated by the Response will not be returned. Use the default setting here, since a zip file is written directly to a directory anyway and this setting also prevents an OutOfMemoryException from being generated for very large amounts of data. Default: false. |
target.zip |
Path and name of the ZIP file to be created. |
zip.excludePattern |
File pattern of the files that should not be packed into the ZIP file. Note: Explicitly specified file names do not work. The specification test.txt would not work, *est.txt however would. |
zip.password |
Optional password for the ZIP file. Obfuscation is allowed. |
zip.password.aes256 |
If true, AES-256 is used, otherwise, AES-128. Default: true. |
Example
Parameter |
Value |
dir.delete |
true |
files.delete |
true |
folder.include |
true |
path.pattern |
./conf/pack/*.txt |
reuse.data |
false |
target.zip |
@var__zip@ |
zip.excludePattern |
.* |
zip.password |
secret |
zip.password.aes256 |
true |