Project JXTA

net.jxta.impl.protocol
Class PeerInfoAdv

java.lang.Object
  |
  +--net.jxta.document.Advertisement
        |
        +--net.jxta.protocol.PeerInfoAdvertisement
              |
              +--net.jxta.impl.protocol.PeerInfoAdv

public class PeerInfoAdv
extends net.jxta.protocol.PeerInfoAdvertisement

This class implements the PeerInfoAdvertisement. 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.PeerInfoAdvertisement.


Constructor Summary
PeerInfoAdv()
           
PeerInfoAdv(net.jxta.document.Element root)
           
PeerInfoAdv(java.lang.String spid, java.lang.String tpid, int uptime, int timestamp, int itime, int otime, java.util.Hashtable itraffic, java.util.Hashtable otraffic)
          Deprecated. Please use the Advertisement factory and accessors
 
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.PeerInfoAdvertisement
getAdvertisementType, getIncomingTrafficChannels, getIncomingTrafficOnChannel, getLastIncomingMessageTime, getLastOutgoingMessageTime, getOutgoingTrafficChannels, getOutgoingTrafficOnChannel, getSourcePid, getTargetPid, getTimestamp, getUptime, setIncomingTrafficElement, setLastIncomingMessageTime, setLastOutgoingMessageTime, setOutgoingTrafficElement, setSourcePid, setTargetPid, setTimestamp, setUptime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PeerInfoAdv

public PeerInfoAdv()

PeerInfoAdv

public PeerInfoAdv(java.lang.String spid,
                   java.lang.String tpid,
                   int uptime,
                   int timestamp,
                   int itime,
                   int otime,
                   java.util.Hashtable itraffic,
                   java.util.Hashtable otraffic)
Deprecated. Please use the Advertisement factory and accessors


PeerInfoAdv

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

initialize

public void initialize(net.jxta.document.Element root)

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