| |
|
| java.lang.Object org.millstone.base.terminal.StreamResource
All known Subclasses: org.millstone.examples.Chat,
StreamResource | public class StreamResource implements ApplicationResource(Code) | | Stream resource is a resource provided to the client directly
by the application. The strean resource is fetched from URI
that is most often in the context of the application or window.
The resource is automatically registered to window in creation.
author: IT Mill Ltd. version: 3.1.1 since: 3.0 |
Inner Class :public interface StreamSource | |
Constructor Summary | |
public | StreamResource(StreamSource streamSource, String filename, Application application) Create new stream resource for downloading from stream. |
StreamResource | public StreamResource(StreamSource streamSource, String filename, Application application)(Code) | | Create new stream resource for downloading from stream.
|
getBufferSize | public int getBufferSize()(Code) | | |
getCacheTime | public long getCacheTime()(Code) | | |
getFilename | public String getFilename()(Code) | | Returns the filename.
String |
getStreamSource | public StreamSource getStreamSource()(Code) | | Returns the source for this StreamResource.
StreamSource is queried when the resource is about to be streamed
to the client.
Source of the StreamResource. |
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. |
setFilename | public void setFilename(String filename)(Code) | | Sets the filename.
Parameters: filename - The filename to set |
setMIMEType | public void setMIMEType(String MIMEType)(Code) | | Set the mime type of the resource
|
setStreamSource | public void setStreamSource(StreamSource streamSource)(Code) | | Sets the source for this StreamResource.
StreamSource is queried when the resource is about to be streamed
to the client.
Parameters: streamSource - The source to set |
|
|
|