|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ApplicationResource
This interface must be implemented by classes wishing to provide Application resources.
ApplicationResource
are a set of named resources (pictures,
sounds, etc) associated with some specific application. Having named
application resources provides a convenient method for having inter-theme
common resources for an application.
Field Summary | |
---|---|
static long |
DEFAULT_CACHETIME
Default cache time. |
Method Summary | |
---|---|
Application |
getApplication()
Gets the application of the resource. |
int |
getBufferSize()
Gets the size of the download buffer used for this resource. |
long |
getCacheTime()
Gets the length of cache expiration time. |
String |
getFilename()
Gets the virtual filename for this resource. |
DownloadStream |
getStream()
Gets resource as stream. |
Methods inherited from interface com.vaadin.terminal.Resource |
---|
getMIMEType |
Field Detail |
---|
static final long DEFAULT_CACHETIME
Method Detail |
---|
DownloadStream getStream()
Application getApplication()
String getFilename()
long getCacheTime()
This gives the adapter the possibility cache streams sent to the client.
The caching may be made in adapter or at the client if the client
supports caching. Default is DEFAULT_CACHETIME
.
int getBufferSize()
If the buffer size is 0, the buffer size is decided by the terminal adapter. The default value is 0.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |