JXTA

net.jxta.share
Class ContentAdvertisement

java.lang.Object
  |
  +--net.jxta.document.Advertisement
        |
        +--net.jxta.share.ContentAdvertisement

public abstract class ContentAdvertisement
extends net.jxta.document.Advertisement
implements java.io.Serializable

A ContentAdvertisement contains information about shared content within a peer group.

See Also:
Serialized Form

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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EN_NAME

public static final java.lang.String EN_NAME
Content name document element name

EN_CID

public static final java.lang.String EN_CID
Content id document element name

EN_TYPE

public static final java.lang.String EN_TYPE
Content type document element name

EN_LENGTH

public static final java.lang.String EN_LENGTH
Content length document element name

EN_DESCRIPTION

public static final java.lang.String EN_DESCRIPTION
Content description document element name
Constructor Detail

ContentAdvertisement

public ContentAdvertisement()
Method Detail

getAdvertisementType

public static java.lang.String getAdvertisementType()
Returns the advertisement type

appendDocument

public abstract void appendDocument(net.jxta.document.StructuredDocument doc,
                                    net.jxta.document.Element el)
Appends this advertisement document to the specified structured document element.

getName

public abstract java.lang.String getName()
Returns the name of the content.

getContentId

public abstract ContentId getContentId()
Returns the id of the content.

getLength

public abstract long getLength()
Returns the length of the content, or -1 if not specified.

getType

public abstract java.lang.String getType()
Returns the mime type of the content, or null if not specified.

getDescription

public abstract java.lang.String getDescription()
Returns the description of the content, or null if not specified.

JXTA