|
Project 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.protocol.PeerGroupAdvertisement | +--net.jxta.protocol.PeerAdvertisement
This abstract class define a Peer advertisement. A peer Advertisement is an instance of the Platform PeerGroup Advertisement. A peer is by default a member of the Platform or World Peer Group.
<?xml version="1.0"?> <PeerAdvertisement> <Name>string</Name> <Keywords>string</Keywords> <Pid> Peer Id </Pid> <Service> service advertisement</Service> ........... <Service> service advertisement</Service> <Endpoint> endpoint Advertisement </Endpoint> ........... <Endpoint> endpoint Advertisement </Endpoint> <InitialApp> initial application </InitialApp> <GroupImpl> group Implementation </GroupImpl> </PeerAdvertisement>
PeerGroupAdvertisement
,
ServiceAdvertisement
,
EndpointAdvertisement
,
ServiceAdvertisement
,
TransportAdvertisement
Constructor Summary | |
PeerAdvertisement()
Default constructor for Peer advertisement |
Method Summary | |
static java.lang.String |
getAdvertisementType()
returns the advertisement type |
java.lang.String |
getCode(java.lang.String name)
get the service implementation for a registered service |
java.util.Hashtable |
getEndpointAdvertisements()
returns the endpoints associated with the peer |
java.lang.String |
getKeywords()
returns the keywords associated with the peer |
java.lang.String |
getName()
returns the name of the Peer |
java.lang.String |
getPid()
returns the peer id |
java.util.Hashtable |
getServiceAdvertisements()
returns the services associated with the services available on the peer |
void |
setEndpointAdvertisements(java.util.Hashtable endpoints)
sets the endpoint advertisement |
void |
setKeywords(java.lang.String keywords)
sets the keywords associated with the peer |
void |
setName(java.lang.String name)
sets the name of the peer |
void |
setPid(java.lang.String pid)
sets the peer id |
void |
setServiceAdvertisements(java.util.Hashtable services)
sets the service advertisements for services registered on the peer |
Methods inherited from class net.jxta.protocol.PeerGroupAdvertisement |
getApp,
getAppCode,
getDebug,
getGid,
getGroupCode,
getGroupImpl,
getIsRendezvous,
getPeerName,
setApp,
setDebug,
setGid,
setGroupImpl,
setIsRendezvous,
setPeerName |
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 |
Constructor Detail |
public PeerAdvertisement()
Method Detail |
public static java.lang.String getAdvertisementType()
public java.lang.String getName()
public void setName(java.lang.String name)
name
- name of the peerpublic java.lang.String getKeywords()
public void setKeywords(java.lang.String keywords)
keywords
- public java.lang.String getPid()
public void setPid(java.lang.String pid)
pid
- peer id to be setpublic java.util.Hashtable getServiceAdvertisements()
public void setServiceAdvertisements(java.util.Hashtable services)
Hashtable
- hashtable of service Advertisements for each service
registeredpublic java.util.Hashtable getEndpointAdvertisements()
public void setEndpointAdvertisements(java.util.Hashtable endpoints)
endpoints
- hashtable of endpoint advertisementspublic java.lang.String getCode(java.lang.String name)
service
- name
|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |