public class ZipCompression extends Object implements QueryResponseTransformer
Modifier and Type | Field and Description |
---|---|
static String |
METACARD_PATH |
Constructor and Description |
---|
ZipCompression(JarSigner jarSigner) |
Modifier and Type | Method and Description |
---|---|
CatalogFramework |
getCatalogFramework() |
void |
setCatalogFramework(CatalogFramework catalogFramework) |
BinaryContent |
transform(SourceResponse upstreamResponse,
Map<String,Serializable> arguments)
|
public static final String METACARD_PATH
public ZipCompression(JarSigner jarSigner)
public BinaryContent transform(SourceResponse upstreamResponse, Map<String,Serializable> arguments) throws CatalogTransformerException
Metacard
s into a BinaryContent
item
with an InputStream
. This transformation expects a key-value pair
"fileName"-zipFileName to be present.transform
in interface QueryResponseTransformer
upstreamResponse
- - a SourceResponse with a list of Metacard
s to compressarguments
- - a map of arguments to use for processing. This method expects "fileName" to
be setBinaryContent
item with the InputStream
for the Zip fileCatalogTransformerException
- when the transformation failspublic void setCatalogFramework(CatalogFramework catalogFramework)
public CatalogFramework getCatalogFramework()
This work is licensed under a Creative Commons Attribution 4.0 International License.