| java.lang.Object org.millstone.base.terminal.ClassResource
ClassResource | public ClassResource(String resourceName, Application application)(Code) | | Create new application resource instance.
The resource id is relative to the location of the application class.
Parameters: resourceName - Unique identifier of the resource within the application. Parameters: application - The application this resource will be added to. |
ClassResource | public ClassResource(Class associatedClass, String resourceName, Application application)(Code) | | Create new application resource instance.
Parameters: associatedClass - The class of the which the resource is associated. Parameters: resourceName - Unique identifier of the resource within the application. Parameters: application - The application this resource will be added to. |
getBufferSize | public int getBufferSize()(Code) | | |
getCacheTime | public long getCacheTime()(Code) | | |
setBufferSize | public void setBufferSize(int bufferSize)(Code) | | Set the size of the download buffer used for this resource.
Parameters: bufferSize - The size of the buffer in bytes. |
setCacheTime | public void setCacheTime(long cacheTime)(Code) | | Set 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. Zero or negavive value disbales the
caching of this stream.
Parameters: cacheTime - The cache time in milliseconds. |
|
|