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, wait
zipIt
protected OwMultifileDownload.OwBufferedSingleContentEntry()
public final int fileCount()
fileCount
in interface OwMultifileDownload.OwContentArchiveEntry
protected abstract void downloadFile(javax.servlet.ServletOutputStream responseOutputStream_p) throws Exception
Exception
protected abstract String createMimeType() throws Exception
Exception
public 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.OwContentArchiveEntry
request_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.