| org.millstone.base.terminal.ApplicationResource
All known Subclasses: org.millstone.base.terminal.StreamResource, org.millstone.base.terminal.FileResource, org.millstone.base.terminal.ClassResource,
ApplicationResource | public interface ApplicationResource extends Resource(Code) | | This interface must be implemented by classes wishing to provide Application resources.
Application resources 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.
author: IT Mill Ltd. version: 3.1.1 since: 3.0 |
DEFAULT_CACHETIME | final public static long DEFAULT_CACHETIME(Code) | | Default cache time.
|
getApplication | public Application getApplication()(Code) | | Get the application of the resource
|
getBufferSize | public int getBufferSize()(Code) | | Get the size of the download buffer used for this resource.
If the buffer size is 0, the buffer size is decided by the
terminal adapter. The default value is 0.
int The size of the buffer in bytes. |
getCacheTime | public long getCacheTime()(Code) | | Get lenght of cache expiracy time.
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.
Cache time in milliseconds |
getFilename | public String getFilename()(Code) | | Get virtual filename for the resource
|
|
|