|
EchoPoint API - 3.0.0b5 App Webcontainer |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectechopoint.tucana.AbstractDownloadProvider
public abstract class AbstractDownloadProvider
An abstract implementation that returns default values for non-mandatory methods.
| Field Summary | |
|---|---|
protected String |
contentDisposition
The content disposition for the file being sent to client. |
protected String |
contentType
The content-type to set for the file. |
protected String |
fileName
The file name of the content being enqueued to the client. |
protected long |
size
The content length of the file (or equivalent) being enqueued to client. |
protected Status |
status
The status of the download process. |
| Constructor Summary | |
|---|---|
AbstractDownloadProvider()
|
|
| Method Summary | |
|---|---|
String |
getContentDisposition()
Returns the value of the disposition-type in the Content-Disposition parameter of the response header. |
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 |
setContentType(String contentType)
Set the content-type for the file. |
void |
setFileName(String fileName)
Set the file name for the downloaded content. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface echopoint.tucana.DownloadProvider |
|---|
getContentType, writeFile |
| Field Detail |
|---|
protected String fileName
protected long size
protected String contentDisposition
protected String contentType
protected Status status
| Constructor Detail |
|---|
public AbstractDownloadProvider()
| Method Detail |
|---|
public String getFileName()
getFileName in interface DownloadProviderpublic void setFileName(String fileName)
fileName - The file name to send to client.public long getSize()
getSize in interface DownloadProviderpublic 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.
getContentDisposition in interface DownloadProviderpublic void setContentType(String contentType)
contentType - The content-type to set.public Status getStatus()
getStatus in interface DownloadProvider
|
EchoPoint API - 3.0.0b5 App Webcontainer |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||