Project JXTA

net.jxta.impl.protocol
Class PeerAdv

java.lang.Object
  |
  +--net.jxta.document.Advertisement
        |
        +--net.jxta.protocol.PeerGroupAdvertisement
              |
              +--net.jxta.protocol.PeerAdvertisement
                    |
                    +--net.jxta.impl.protocol.PeerAdv

public class PeerAdv
extends net.jxta.protocol.PeerAdvertisement

This class implements the PeerAdvertisement. While being useful, application are not required to use it. However, applications that donot want to use it will still have to provide a class that extends net.jxta.protocol.PeerAdvertisement.


Constructor Summary
PeerAdv()
           
PeerAdv(net.jxta.document.Element root)
           
PeerAdv(java.lang.String pid, java.lang.String name, java.lang.String keywords, java.util.Hashtable services, java.util.Hashtable endpoints)
           
 
Method Summary
 net.jxta.document.Document getDocument(net.jxta.document.MimeMediaType encodeAs)
           
 void initialize(net.jxta.document.Element root)
           
 java.lang.String toString()
           
 
Methods inherited from class net.jxta.protocol.PeerAdvertisement
getAdvertisementType, getCode, getEndpointAdvertisements, getKeywords, getName, getPid, getServiceAdvertisements, setEndpointAdvertisements, setKeywords, setName, setPid, setServiceAdvertisements
 
Methods inherited from class net.jxta.protocol.PeerGroupAdvertisement
getApp, getAppCode, getDebugLevel, getGid, getGroupCode, getGroupImpl, getIsRendezvous, getPeerName, setApp, setDebugLevel, setGid, setGroupImpl, setIsRendezvous, setPeerName
 
Methods inherited from class net.jxta.document.Advertisement
getLocalExpirationTime, setExpiration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PeerAdv

public PeerAdv()

PeerAdv

public PeerAdv(java.lang.String pid,
               java.lang.String name,
               java.lang.String keywords,
               java.util.Hashtable services,
               java.util.Hashtable endpoints)

PeerAdv

public PeerAdv(net.jxta.document.Element root)
        throws java.lang.Exception
Method Detail

initialize

public void initialize(net.jxta.document.Element root)
                throws java.lang.Exception

getDocument

public net.jxta.document.Document getDocument(net.jxta.document.MimeMediaType encodeAs)
                                       throws java.lang.Exception
Overrides:
getDocument in class net.jxta.document.Advertisement

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Project JXTA