|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataSource
Base interface implemented by all data sources, independent on their actual stream type. This interface captures the metadata of the data source.
The assumption is that the metadata is constant across the lifetime of the
DataSource
, i.e. calling any of the methods multiple times must
always return the same result.
The DataSource
implementor may implement additional interfaces to
describe properties of the data.
This interface is designed to be implemented by clients. |
Field Summary | |
---|---|
static java.lang.String |
CONTENT_TYPE_UNKNOWN
Indicates an unknown content type |
static java.util.Date |
CREATION_UNKNOWN
Indicates an unknown creation date |
static java.util.Date |
EXPIRATION_UNKNOWN
Indicates an unknown expiration |
static java.util.Date |
LAST_MODIFICATION_UNKNOWN
Indicates an unknown last modified date |
static long |
MAX_AGE_INFINITE
Timespan for "infinite" lifetime in [ms], per default set to one (tropical) year |
static long |
MAX_AGE_NONE
Timespan for immediate expiry in [ms] |
static java.util.Date |
ROOT_DATE
The earliest representable date. |
Fields inherited from interface com.ibm.portal.resolver.data.Addressable |
---|
EMPTY_PARAMETERS |
Method Summary | |
---|---|
java.lang.String |
getContentType()
Mime type of the data. |
java.util.Date |
getCreated()
Returns the creation date of the resource. |
java.util.Date |
getExpiration()
Absolute timestamp that indicates the time when the data represented by the source will expire. |
java.util.Date |
getLastModified()
Returns the modification date of the resource. |
Methods inherited from interface com.ibm.portal.resolver.data.Addressable |
---|
getParameters, getURI |
Methods inherited from interface com.ibm.portal.Disposable |
---|
dispose |
Field Detail |
---|
static final java.lang.String CONTENT_TYPE_UNKNOWN
static final java.util.Date CREATION_UNKNOWN
static final java.util.Date EXPIRATION_UNKNOWN
static final java.util.Date LAST_MODIFICATION_UNKNOWN
static final long MAX_AGE_INFINITE
static final long MAX_AGE_NONE
static final java.util.Date ROOT_DATE
Method Detail |
---|
java.lang.String getContentType()
CONTENT_TYPE_UNKNOWN
. A value of CONTENT_TYPE_UNKNOWN
means that the data source does not contain any content.
CONTENT_TYPE_UNKNOWN
if the data
source does not represent contentjava.util.Date getCreated()
getCreated
in interface TimeStamped
CREATION_UNKNOWN
java.util.Date getExpiration()
getExpiration
in interface DataSourceFragment
EXPIRATION_UNKNOWN
if the
value is unknownjava.util.Date getLastModified()
getLastModified
in interface TimeStamped
LAST_MODIFICATION_UNKNOWN
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |