Project JXTA

net.jxta.impl.protocol
Class PeerAdv

java.lang.Object
  extended bynet.jxta.document.Advertisement
      extended bynet.jxta.document.ExtendableAdvertisement
          extended bynet.jxta.protocol.PeerAdvertisement
              extended bynet.jxta.impl.protocol.PeerAdv
All Implemented Interfaces:
Cloneable

public class PeerAdv
extends PeerAdvertisement

Implementation of PeerAdvertisement matching the standard JXTA Protocol Specification. It implements Peer Advertisement using the following schema:


 <xs:complexType name="PA">
   <xs:sequence>
     <xs:element name="PID" type="JXTAID"/>
     <xs:element name="GID" type="JXTAID"/>
     <xs:element name="Name" type="xs:string" minOccurs="0"/>
     <xs:element name="Desc" type="xs:anyType" minOccurs="0"/>
     <xs:element name="Svc" type="jxta:serviceParams" minOccurs="0" maxOccurs="unbounded"/>
   <xs:sequence>
 </xs:complexType>
 

See Also:
PeerAdvertisement, JXTA Protocols Specification : Peer Advertisement

Nested Class Summary
static class PeerAdv.Instantiator
          Creates instances of PeerAdvertisement.
 
Field Summary
 
Fields inherited from class net.jxta.protocol.PeerAdvertisement
modCount
 
Constructor Summary
(package private) PeerAdv()
          Private Constructor, use the instantiator
(package private) PeerAdv(Element root)
          Private Constructor, use the instantiator
 
Method Summary
 Document getDocument(MimeMediaType encodeAs)
          
 String[] getIndexFields()
          
protected  boolean handleElement(Element raw)
          
 
Methods inherited from class net.jxta.protocol.PeerAdvertisement
clone, getAdvertisementType, getBaseAdvType, getDesc, getDescription, getID, getModCount, getName, getPeerGroupID, getPeerID, getServiceParam, getServiceParams, incModCount, putServiceParam, removeServiceParam, setDesc, setDescription, setName, setPeerGroupID, setPeerID, setServiceParams
 
Methods inherited from class net.jxta.document.Advertisement
getAdvType, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PeerAdv

PeerAdv()
Private Constructor, use the instantiator


PeerAdv

PeerAdv(Element root)
Private Constructor, use the instantiator

Method Detail

handleElement

protected boolean handleElement(Element raw)


getDocument

public Document getDocument(MimeMediaType encodeAs)


getIndexFields

public final String[] getIndexFields()


JXTA J2SE