public class DownloadableFileRepresentation
extends org.restlet.representation.FileRepresentation
| Modifier and Type | Field and Description |
|---|---|
protected UploadedFileProcessor |
uploadedFileProcessor
The UploadedFileProcessor.
|
| Constructor and Description |
|---|
DownloadableFileRepresentation(java.lang.String fileName,
java.lang.String contentFileName,
org.restlet.data.MediaType mediaType,
boolean deleteFileAfterSending,
UploadedFileProcessor uploadedFileProcessor,
boolean sendAsAttachedFile)
Create a downloadable file representation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
release()
Deletes temporary files and directories, if any.
|
getChannel, getFile, getReader, getSize, getStream, getText, isAutoDeleting, setAutoDeleting, setFile, write, write, writeappend, exhaust, getAvailableSize, getDigest, getDisposition, getExpirationDate, getRange, getRegistration, hasKnownSize, isAvailable, isEmpty, isSelectable, isTransient, setAvailable, setDigest, setDisposition, setExpirationDate, setListener, setRange, setSize, setTransientgetModificationDate, getTag, setModificationDate, setTagprotected UploadedFileProcessor uploadedFileProcessor
public DownloadableFileRepresentation(java.lang.String fileName,
java.lang.String contentFileName,
org.restlet.data.MediaType mediaType,
boolean deleteFileAfterSending,
UploadedFileProcessor uploadedFileProcessor,
boolean sendAsAttachedFile)
fileName - File name to send.contentFileName - File name for content header.mediaType - Media type of file.deleteFileAfterSending - True to delete file after sending.uploadedFileProcessor - UploadedFileProcessor. May be null.sendAsAttachedFile - Send file as attached file.