protected static interface OwMultifileDownload.OwContentArchiveEntry
A content archive entry.
Each entry contains 0 or more files, can be zipped on a ZipOutputStream under
a specified path and can be "served" on a HttpServletResponse.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
| Modifier and Type | Method and Description |
|---|---|
int |
fileCount() |
void |
serveSingleFileOn(javax.servlet.http.HttpServletRequest request_p,
javax.servlet.http.HttpServletResponse response_p,
String fileName_p)
Serializes the content on the response output stream of the
HttpServletResponse parameter |
void |
zipIt(org.apache.tools.zip.ZipOutputStream zipOutputStream_p,
String path_p)
Adds the content represented by this archive entry to the specified
ZipOutputStream |
void zipIt(org.apache.tools.zip.ZipOutputStream zipOutputStream_p,
String path_p)
throws Exception
ZipOutputStreamzipOutputStream_p - the ZipOutputStream to serialize the content onpath_p - the path under which the content should be serialized on the ZipOutputStreamException - if an error occurs during ZIP serialization (content access related errors
should not be treated locally and logged)void serveSingleFileOn(javax.servlet.http.HttpServletRequest request_p,
javax.servlet.http.HttpServletResponse response_p,
String fileName_p)
throws OwInvalidOperationException
HttpServletResponse parameterrequest_p - HttpServletRequestresponse_p - the HTTP response to serialize the content onfileName_p - the name under which the content should be serializedOwInvalidOperationException - if the response serialization is not possible (for example
because this entry contains multiple files)int fileCount()
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.