Project JXTA

net.jxta.impl.protocol
Class PeerAdv

java.lang.Object
  extended by net.jxta.document.Advertisement
      extended by net.jxta.document.ExtendableAdvertisement
          extended by net.jxta.protocol.PeerAdvertisement
              extended by net.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
PeerAdv()
          Private Constructor, use the instantiator
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)

Overrides:
handleElement in class ExtendableAdvertisement

getDocument

public Document getDocument(MimeMediaType encodeAs)

Overrides:
getDocument in class ExtendableAdvertisement

getIndexFields

public final String[] getIndexFields()

Specified by:
getIndexFields in class Advertisement

JXTA J2SE