|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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
| Method Summary | |
|---|---|
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 |
| Method Detail |
|---|
void zipIt(org.apache.tools.zip.ZipOutputStream zipOutputStream_p,
String path_p)
throws Exception
ZipOutputStream
zipOutputStream_p - the ZipOutputStream to serialize the content onpath_p - the path under which the content should be serialized on the ZipOutputStream
Exception - 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 parameter
request_p - HttpServletRequestresponse_p - the HTTP response to serialize the content onfileName_p - the name under which the content should be serialized
OwInvalidOperationException - if the response serialization is not possible (for example
because this entry contains multiple files)int fileCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||