|
EchoPoint API - 3.0.0b5 App Webcontainer |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DownloadProvider
An interface to be implemented by the class providing the data to be downloaded.
| Method Summary | |
|---|---|
String |
getContentDisposition()
Returns the value of the disposition-type in the Content-Disposition parameter of the response header. |
String |
getContentType()
Returns the content type, for example "text/plain". |
String |
getFileName()
Returns the file name, for example "my-file.txt". |
long |
getSize()
Returns the size of the data to be downloaded. |
Status |
getStatus()
Return the status of the download action. |
void |
writeFile(OutputStream out)
Writes the file data to the output stream. |
| Method Detail |
|---|
String getContentType()
String getContentDisposition()
null indicates that a
Content-Disposition parameter should not be included in the reponse
header. See RFC 2183 for more info. The following values are most
commonly used:
inline - Indicates that the browser should attempt to
display the content.attachment - Usually the default action. The browser
will display a save content dialogue.
String getFileName()
long getSize()
void writeFile(OutputStream out)
throws IOException
out - the output stream to which the file data must be written.
IOException - If errors are encountered while writing to the
output stream.Status getStatus()
|
EchoPoint API - 3.0.0b5 App Webcontainer |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||