com.wewebu.ow.server.servlets
Class OwMultifileDownload.OwContentElementEntry
java.lang.Object
com.wewebu.ow.server.servlets.OwMultifileDownload.OwBufferedSingleContentEntry
com.wewebu.ow.server.servlets.OwMultifileDownload.OwContentElementEntry
- All Implemented Interfaces:
- OwMultifileDownload.OwContentArchiveEntry
- Enclosing class:
- OwMultifileDownload
protected class OwMultifileDownload.OwContentElementEntry
- extends OwMultifileDownload.OwBufferedSingleContentEntry
An OwContentElement
based implementation of OwMultifileDownload.OwBufferedSingleContentEntry
Method Summary |
protected String |
createMimeType()
(overridable) MIME type creating hook method. |
protected void |
downloadFile(javax.servlet.ServletOutputStream responseOutputStream_p)
(overridable) method |
void |
zipIt(org.apache.tools.zip.ZipOutputStream zipOutputStream_p,
String fileName_p)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OwMultifileDownload.OwContentElementEntry
public OwMultifileDownload.OwContentElementEntry(OwContentElement element_p,
String objectName_p,
int elementIndex_p)
- Constructor
- Parameters:
element_p
- the content element this entry relies onobjectName_p
- the name of the object this content element belongs toelementIndex_p
- the index of the content element in its residing OwContentCollection
createMimeType
protected String createMimeType()
throws Exception
- Description copied from class:
OwMultifileDownload.OwBufferedSingleContentEntry
- (overridable) MIME type creating hook method.
- Specified by:
createMimeType
in class OwMultifileDownload.OwBufferedSingleContentEntry
- Returns:
- the MIME type of
OwContentElement
- Throws:
Exception
downloadFile
protected void downloadFile(javax.servlet.ServletOutputStream responseOutputStream_p)
throws Exception
- Description copied from class:
OwMultifileDownload.OwBufferedSingleContentEntry
- (overridable) method
- Specified by:
downloadFile
in class OwMultifileDownload.OwBufferedSingleContentEntry
- Throws:
Exception
zipIt
public final void zipIt(org.apache.tools.zip.ZipOutputStream zipOutputStream_p,
String fileName_p)
throws Exception
- Throws:
Exception
Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.