|
JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.jxta.document.Advertisement | +--net.jxta.share.ContentAdvertisement
A ContentAdvertisement contains information about shared content within a peer group.
Field Summary | |
static java.lang.String |
EN_CID
Content id document element name |
static java.lang.String |
EN_DESCRIPTION
Content description document element name |
static java.lang.String |
EN_LENGTH
Content length document element name |
static java.lang.String |
EN_NAME
Content name document element name |
static java.lang.String |
EN_TYPE
Content type document element name |
Constructor Summary | |
ContentAdvertisement()
|
Method Summary | |
abstract void |
appendDocument(net.jxta.document.StructuredDocument doc,
net.jxta.document.Element el)
Appends this advertisement document to the specified structured document element. |
static java.lang.String |
getAdvertisementType()
Returns the advertisement type |
abstract ContentId |
getContentId()
Returns the id of the content. |
abstract java.lang.String |
getDescription()
Returns the description of the content, or null if not specified. |
abstract long |
getLength()
Returns the length of the content, or -1 if not specified. |
abstract java.lang.String |
getName()
Returns the name of the content. |
abstract java.lang.String |
getType()
Returns the mime type of the content, or null if not specified. |
Methods inherited from class net.jxta.document.Advertisement |
getDocument,
getLocalExpirationTime,
setExpiration |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final java.lang.String EN_NAME
public static final java.lang.String EN_CID
public static final java.lang.String EN_TYPE
public static final java.lang.String EN_LENGTH
public static final java.lang.String EN_DESCRIPTION
Constructor Detail |
public ContentAdvertisement()
Method Detail |
public static java.lang.String getAdvertisementType()
public abstract void appendDocument(net.jxta.document.StructuredDocument doc, net.jxta.document.Element el)
public abstract java.lang.String getName()
public abstract ContentId getContentId()
public abstract long getLength()
public abstract java.lang.String getType()
public abstract java.lang.String getDescription()
|
JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |