org.openprivacy.reptile.jxta.protocol
Class ReptilePeerAdvertisement

java.lang.Object
  |
  +--net.jxta.document.Advertisement
        |
        +--net.jxta.protocol.ModuleSpecAdvertisement
              |
              +--net.jxta.impl.protocol.ModuleSpecAdv
                    |
                    +--org.openprivacy.reptile.jxta.protocol.ReptilePeerAdvertisement
All Implemented Interfaces:
java.lang.Cloneable

public class ReptilePeerAdvertisement
extends net.jxta.impl.protocol.ModuleSpecAdv


Field Summary
static long EXPIRATION
          Default expiration time of 2 hours.
 
Fields inherited from class net.jxta.document.Advertisement
expiration
 
Constructor Summary
ReptilePeerAdvertisement(net.jxta.peergroup.PeerGroup platform)
          Create a new ReptilePeerAdvertisement instance.
 
Method Summary
 java.lang.String getDescription()
          Get the title for this adv
 java.lang.String getImage()
          Get the image for this adv
 java.lang.String getPeerID()
          Get the PeerID for this adv
 java.lang.String getPeerName()
          Get the PeerID for this adv
 java.lang.String getTitle()
          Get the title for this adv
static boolean isReptilePeerAdvertisement(net.jxta.document.Advertisement adv)
          Return true if this is a ReptilePeerAdvertisement.
 
Methods inherited from class net.jxta.impl.protocol.ModuleSpecAdv
getDocument, initialize
 
Methods inherited from class net.jxta.protocol.ModuleSpecAdvertisement
clone, getAdvertisementType, getAuthSpecID, getCreator, getID, getModuleSpecID, getName, getParam, getPipeAdvertisement, getProxySpecID, getSpecURI, getVersion, setAuthSpecID, setCreator, setDescription, setModuleSpecID, setName, setParam, setPipeAdvertisement, setProxySpecID, setSpecURI, setVersion
 
Methods inherited from class net.jxta.document.Advertisement
getLocalExpirationTime
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXPIRATION

public static final long EXPIRATION
Default expiration time of 2 hours. This should allow peers to come in and out without too many stale entries.

See Also:
Constant Field Values
Constructor Detail

ReptilePeerAdvertisement

public ReptilePeerAdvertisement(net.jxta.peergroup.PeerGroup platform)
                         throws java.lang.Exception
Create a new ReptilePeerAdvertisement instance.

Method Detail

getTitle

public java.lang.String getTitle()
Get the title for this adv


getDescription

public java.lang.String getDescription()
Get the title for this adv

Overrides:
getDescription in class net.jxta.protocol.ModuleSpecAdvertisement

getPeerID

public java.lang.String getPeerID()
Get the PeerID for this adv


getPeerName

public java.lang.String getPeerName()
Get the PeerID for this adv


getImage

public java.lang.String getImage()
Get the image for this adv


isReptilePeerAdvertisement

public static boolean isReptilePeerAdvertisement(net.jxta.document.Advertisement adv)
Return true if this is a ReptilePeerAdvertisement.