JXTA

Uses of Class
net.jxta.document.Advertisement

Packages that use Advertisement
net.jxta.discovery The JXTA Discovery Service provides an asynchronous mechanism for discovering Peer Advertisements, Group Advertisements, and other general JXTA Advertisements (pipes, services, etc.). 
net.jxta.document JXTA Documents are containers for both structured and unstructured data. 
net.jxta.peergroup Peer groups are formed as a collection of peers that have agreed upon a common set of services. 
net.jxta.platform Classes for defining code modules within JXTA. 
net.jxta.protocol Provides inteface objects for Advertisments and protocol messages for the JXTA Core and Standard Protocols. 
net.jxta.service Every service is defined by a ModuleImplAdvertisement
net.jxta.util A collection of utility classes used by the JXTA implementation and/or useful to users of the JXTA API. 
 

Uses of Advertisement in net.jxta.discovery
 

Methods in net.jxta.discovery that return types with arguments of type Advertisement
 Enumeration<Advertisement> DiscoveryService.getLocalAdvertisements(int type, String attribute, String value)
          Retrieve locally stored Advertisements.
 Enumeration<Advertisement> DiscoveryEvent.getSearchResults()
          Returns an array of advertisements contained in the DiscoveryResponse for this event.
 

Methods in net.jxta.discovery with parameters of type Advertisement
 void DiscoveryService.flushAdvertisement(Advertisement adv)
          Removes the specified Advertisement from the cache of locally stored Advertisements.
 long DiscoveryService.getAdvExpirationTime(Advertisement adv)
          Returns the maximum duration in milliseconds for which this document will be cached by peers other than the publisher.
 long DiscoveryService.getAdvLifeTime(Advertisement adv)
          Returns the maximum duration in milliseconds for which this document should be kept in local cache.
 void DiscoveryService.publish(Advertisement adv)
          Publish an Advertisement.
 void DiscoveryService.publish(Advertisement adv, long lifetime, long expiration)
          Publish an Advertisement.
 void DiscoveryService.remotePublish(Advertisement adv)
          Publish an Advertisement via propagation to other peers on the network.
 void DiscoveryService.remotePublish(Advertisement adv, long expiration)
          Publish an Advertisement via propagation to other peers on the network.
 void DiscoveryService.remotePublish(String peerid, Advertisement adv)
          Publish an Advertisement to another peer on the network.
 void DiscoveryService.remotePublish(String peerid, Advertisement adv, long expiration)
          Publish an Advertisement to another peer on the network.
 

Uses of Advertisement in net.jxta.document
 

Subclasses of Advertisement in net.jxta.document
 class ExtendableAdvertisement
          Extendable advertisements provide features for allowing inheritance of advertisement types.
 

Methods in net.jxta.document that return Advertisement
 Advertisement Advertisement.clone()
          
static Advertisement AdvertisementFactory.newAdvertisement(MimeMediaType mimetype, InputStream stream)
          Deprecated. Please convert your code to construct an XMLDocument using StructuredDocumentFactory and then call AdvertisementFactory.newAdvertisement(XMLElement). For example :

   XMLDocument xml = (XMLDocument) StructuredDocumentFactory.newStructuredDocument( MimeMediaType.XMLUTF8, is );
 
or frequently:

   XMLDocument xml = (XMLDocument) StructuredDocumentFactory.newStructuredDocument( msgElement );
 
followed by:

   Advertisement adv = AdvertisementFactory.newAdvertisement(xml);
 
static Advertisement AdvertisementFactory.newAdvertisement(MimeMediaType mimetype, Reader source)
          Deprecated. Please convert your code to construct an XMLDocument using StructuredDocumentFactory and then call AdvertisementFactory.newAdvertisement(XMLElement). For example :

   XMLDocument xml = (XMLDocument) StructuredDocumentFactory.newStructuredDocument( MimeMediaType.XMLUTF8, reader );
 
or frequently:

   XMLDocument xml = (XMLDocument) StructuredDocumentFactory.newStructuredDocument( msgElement );
 
followed by:

   Advertisement adv = AdvertisementFactory.newAdvertisement(xml);
 
static Advertisement AdvertisementFactory.newAdvertisement(String advertisementType)
          Constructs a new instance of Advertisement matching the type specified by the advertisementType parameter.
static Advertisement AdvertisementFactory.newAdvertisement(TextElement root)
          Deprecated. Advertisements must be encoded in XML. This is a legacy static constructor. You should convert your code to use the XMLElement version.
static Advertisement AdvertisementFactory.newAdvertisement(XMLElement root)
          Reconstructs an instance of Advertisement matching the type specified by the root parameter.
 Advertisement AdvertisementFactory.Instantiator.newInstance()
          Constructs an instance of Advertisement matching the type specified by the advertisementType parameter.
 Advertisement AdvertisementFactory.Instantiator.newInstance(Element root)
          Constructs an instance of Advertisement matching the type specified by the advertisementType parameter.
 

Uses of Advertisement in net.jxta.peergroup
 

Methods in net.jxta.peergroup with parameters of type Advertisement
 void LightWeightPeerGroup.init(PeerGroup group, ID assignedID, Advertisement implAdv)
          Initialize the module, passing it its peer group and advertisement.
 Module LightWeightPeerGroup.loadModule(ID assignedID, Advertisement impl)
          Load a Module from a ModuleImplAdv.
 Module PeerGroup.loadModule(ID assignedID, Advertisement impl)
          Load a Module from a ModuleImplAdv.
 PeerGroup LightWeightPeerGroup.newGroup(Advertisement pgAdv)
          Instantiate a peer group from the provided advertisement.
 PeerGroup PeerGroup.newGroup(Advertisement pgAdv)
          Instantiate a peer group from the provided advertisement.
 PeerGroup LightWeightPeerGroup.newGroup(PeerGroupID gid, Advertisement impl, String name, String description)
          Instantiates a peer group from its elementary pieces and publishes the corresponding PeerGroupAdvertisement.
 PeerGroup PeerGroup.newGroup(PeerGroupID gid, Advertisement impl, String name, String description)
          Instantiates a peer group from its elementary pieces and publishes the corresponding PeerGroupAdvertisement.
 

Uses of Advertisement in net.jxta.platform
 

Methods in net.jxta.platform with parameters of type Advertisement
protected  XMLDocument NetworkConfigurator.getParmDoc(boolean enabled, Advertisement adv)
          Returns a XMLDocument representation of an Advertisement
 void Module.init(PeerGroup group, ID assignedID, Advertisement implAdv)
          Initialize the module, passing it its peer group and advertisement.
 

Uses of Advertisement in net.jxta.protocol
 

Subclasses of Advertisement in net.jxta.protocol
 class AccessPointAdvertisement
          Provides a simple association of a PeerID to an ordered list of EndpointAddress entries.
 class ConfigParams
          A container for collections of configuration parameters.
 class ModuleClassAdvertisement
          Formally documents the existence of a module class (identified by the ModuleClassID and may provide additional descriptive metadata about the Module Class.
 class ModuleImplAdvertisement
          A ModuleImplAdvertisement describes one of any number of published implementations for a given specification.
 class ModuleSpecAdvertisement
          Provides the references that describe a module specification.
 class PeerAdvertisement
          Generated when instantiating a group on a peer and contains all the parameters that services need to publish.
 class PeerGroupAdvertisement
          Describes a peer group and references additional information required for instantiating it.
 class PipeAdvertisement
          Describes a JXTA Pipe.
 class RdvAdvertisement
          This class defines a Rendezvous Advertisement.
 class RouteAdvertisement
          Advertisement used to represent a route to a peer.
 class SignedAdvertisement
          A container for signed Advertisements
 class TransportAdvertisement
          This abstract class defines a Transport advertisement.
 

Fields in net.jxta.protocol declared as Advertisement
protected  Advertisement SignedAdvertisement.adv
           
 

Fields in net.jxta.protocol with type parameters of type Advertisement
protected  List<Advertisement> DiscoveryResponseMsg.advertisements
          The advertisement responses deserialized.
 

Methods in net.jxta.protocol that return Advertisement
 Advertisement SignedAdvertisement.getAdvertisement()
          Gets the Advertisement.
 Advertisement ConfigParams.getSvcConfigAdvertisement(ID key)
          Gets an advertisement from the service parameters table under the given key.
 

Methods in net.jxta.protocol that return types with arguments of type Advertisement
 Enumeration<Advertisement> DiscoveryResponseMsg.getAdvertisements()
          Get the responses to the query as advertisements.
 

Methods in net.jxta.protocol with parameters of type Advertisement
 void SignedAdvertisement.setAdvertisement(Advertisement adv)
          Sets the Advertisement to be signed.
 void ConfigParams.setSvcConfigAdvertisement(ID key, Advertisement adv)
          Puts an advertisement into the service parameters table under the given key.
 void ConfigParams.setSvcConfigAdvertisement(ID key, Advertisement adv, boolean enabled)
          Puts an advertisement into the service parameters table under the given key.
 

Uses of Advertisement in net.jxta.service
 

Methods in net.jxta.service that return Advertisement
 Advertisement Service.getImplAdvertisement()
          Returns the advertisement for this service.
 

Uses of Advertisement in net.jxta.util
 

Methods in net.jxta.util that return Advertisement
static Advertisement AdvertisementUtilities.bytesToAdvertisement(byte[] buf)
          Deprecated. This method should not be used because it interprets the input using the local default encoding which is not predictable and may (will) differ from JVM to JVM.
static Advertisement AdvertisementUtilities.newAdvertisementFromXml(byte[] xmlTextAsBytes)
          Deprecated. This method should not be used because it produces a result who's encoding is not predictable and may (will) differ from JVM to JVM.
static Advertisement AdvertisementUtilities.newAdvertisementFromXml(String xmlText)
          Deprecated. This method should not be used because it interprets the input using the local default encoding which is not precidcatable and may (will) differ from JVM to JVM.
static Advertisement AdvertisementUtilities.readAdvertisementFromFile(File file)
          Deprecated. Read a JXTA Advertisement from a File
static Advertisement AdvertisementUtilities.readAdvertisementFromFile(String fileName)
          Deprecated. Read a JXTA Advertisement from a File
 

Methods in net.jxta.util with parameters of type Advertisement
static byte[] AdvertisementUtilities.advertisementToBytes(Advertisement advertisement)
          Deprecated. This method should not be used because it produces a result who's encoding is not predictable and may (will) differ from JVM to JVM.
static String AdvertisementUtilities.advertisementToPlainText(Advertisement advertisement)
          Deprecated. Save a JXTA Advertisement to a Plain Text String
static String AdvertisementUtilities.advertisementToText(Advertisement advertisement, String mimeType)
          Deprecated. Save a JXTA Advertisement to a String
static String AdvertisementUtilities.advertisementToXmlText(Advertisement advertisement)
          Deprecated. Equivalent to Advertisement.toString()
static void AdvertisementUtilities.saveAdvertisementToFile(Advertisement adv, File file)
          Deprecated. Save a JXTA Advertisement as an XML Document to a File
static void AdvertisementUtilities.saveAdvertisementToFile(Advertisement adv, String fileName)
          Deprecated. Save a JXTA Advertisement as an XML Document to a File
 


JXSE