|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--net.jxta.document.Advertisement
|
+--net.jxta.protocol.PresenceAdvertisement
An abstract class defining an advertisement containing the elements used to describe a user's presence status. A user is assumed to be uniquely described by their email address.
| Field Summary |
| Fields inherited from class net.jxta.document.Advertisement |
expiration |
| Constructor Summary | |
PresenceAdvertisement()
|
|
| Method Summary | |
static java.lang.String |
getAdvertisementType()
Returns the advertisement type for the advertisement's document. |
java.lang.String |
getEmailAddress()
Returns the email address String describing the user whose presence status is described by this advertisement. |
net.jxta.id.ID |
getID()
Returns a unique identifier for this document. |
java.lang.String |
getName()
Returns the simple name for the user described by this advertisement. |
java.lang.String |
getPeerID()
Returns the peer ID of the user described by this advertisement. |
int |
getPresenceStatus()
Returns the presence status information of the user described by this advertisement. |
void |
setEmailAddress(java.lang.String emailAddress)
Sets the email address String describing the user whose presence status is described by this advertisement. |
void |
setName(java.lang.String name)
Sets the simple name for the user described by this advertisement. |
void |
setPeerID(java.lang.String peerID)
Sets the peer ID identifying the peer's location on the P2P network. |
void |
setPresenceStatus(int presenceStatus)
Sets the presence status informtion of the user described by this advertisement. |
| Methods inherited from class net.jxta.document.Advertisement |
clone, getDocument, getLocalExpirationTime |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PresenceAdvertisement()
| Method Detail |
public static java.lang.String getAdvertisementType()
public java.lang.String getEmailAddress()
public net.jxta.id.ID getID()
getID in class net.jxta.document.Advertisementpublic java.lang.String getName()
public java.lang.String getPeerID()
public int getPresenceStatus()
public void setEmailAddress(java.lang.String emailAddress)
emailAddress - the email address for the advertisement.public void setName(java.lang.String name)
name - the user's name.public void setPeerID(java.lang.String peerID)
peerID - the peer ID for the advertisement.public void setPresenceStatus(int presenceStatus)
presenceStatus - the user's status information.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||