com.ibm.portal.resolver.data
Interface DataSource

All Superinterfaces:
Addressable, Disposable, TimeStamped
All Known Subinterfaces:
ByteDataSource, CharDataSource, XmlDataSource

public interface DataSource
extends Addressable, TimeStamped, Disposable

Base interface implemented by all data sources, independent on their actual stream type. This interface captures the metadata of the data source.

Since:
6.1.0
Note:
This interface is designed to be implemented by clients.

Method Summary
 java.lang.String getContentType()
          Mime type of the data.
 java.util.Date getExpiration()
          Absolute timestamp that indicates the time when the data represented by the source will expire.
 
Methods inherited from interface com.ibm.portal.resolver.data.Addressable
getParameters, getURI
 
Methods inherited from interface com.ibm.portal.TimeStamped
getCreated, getLastModified
 
Methods inherited from interface com.ibm.portal.Disposable
dispose
 

Method Detail

getContentType

java.lang.String getContentType()
Mime type of the data. The return value must be a registered mime type and must not be null

Returns:
mime type string, not null

getExpiration

java.util.Date getExpiration()
Absolute timestamp that indicates the time when the data represented by the source will expire.

Returns:
the date the data expires or null if the value is unknown