protected abstract class OwMultifileDownload.OwBufferedSingleContentEntry extends Object implements OwMultifileDownload.OwContentArchiveEntry
| Modifier | Constructor and Description |
|---|---|
protected |
OwMultifileDownload.OwBufferedSingleContentEntry() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
createMimeType()
(overridable) MIME type creating hook method.
|
protected abstract void |
downloadFile(javax.servlet.ServletOutputStream responseOutputStream_p)
(overridable) method
|
int |
fileCount() |
void |
serveSingleFileOn(javax.servlet.http.HttpServletRequest request_p,
javax.servlet.http.HttpServletResponse response_p,
String fileName_p)
Serializes the content on the
HttpServletResponse
parameter using the content type acquired through createMimeType(). |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitzipItprotected OwMultifileDownload.OwBufferedSingleContentEntry()
public final int fileCount()
fileCount in interface OwMultifileDownload.OwContentArchiveEntryprotected abstract void downloadFile(javax.servlet.ServletOutputStream responseOutputStream_p)
throws Exception
Exceptionprotected abstract String createMimeType() throws Exception
Exceptionpublic final void serveSingleFileOn(javax.servlet.http.HttpServletRequest request_p,
javax.servlet.http.HttpServletResponse response_p,
String fileName_p)
throws OwInvalidOperationException
HttpServletResponse
parameter using the content type acquired through createMimeType().serveSingleFileOn in interface OwMultifileDownload.OwContentArchiveEntryrequest_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)Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.