com.wewebu.ow.server.servlets
Class OwMultifileDownload.OwContentElementEntry

java.lang.Object
  extended by com.wewebu.ow.server.servlets.OwMultifileDownload.OwBufferedSingleContentEntry
      extended by 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


Constructor Summary
OwMultifileDownload.OwContentElementEntry(OwContentElement element_p, String objectName_p, int elementIndex_p)
          Constructor
 
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 com.wewebu.ow.server.servlets.OwMultifileDownload.OwBufferedSingleContentEntry
fileCount, serveSingleFileOn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OwMultifileDownload.OwContentElementEntry

public OwMultifileDownload.OwContentElementEntry(OwContentElement element_p,
                                                 String objectName_p,
                                                 int elementIndex_p)
Constructor

Parameters:
element_p - the content element this entry relies on
objectName_p - the name of the object this content element belongs to
elementIndex_p - the index of the content element in its residing OwContentCollection
Method Detail

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.