Name
Advertisement
Synopsis
Advertisements are core JXTA objects that advertise all JXTA resources (peers, peergroups, pipes, and so on). They provide a platform-independent representation of core platform objects.
Advertisements contain text documents
that hold the contents of the advertisement; a document can be
extracted from an advertisement with the getDocument( )
method with a MIME type of
“text/xml” or
“text/plain.”
Advertisements carry a timeout value, which is the number of seconds during which the advertisement is valid. Entities that cache advertisements should purge advertisements after that number of seconds have elapsed.
Subclasses of this type are expected to
override the getAdvertisementType( )
method and
return a name that uniquely identifies the advertisement type.
public abstract class Advertisement { // Public Constructors public Advertisement(); // Public Class Methods public static String getAdvertisementType(); // Public Instance Methods public abstract Document getDocument(MimeMediaType asMimeType); public abstract net.jxta.id.ID getID(); // Public Methods Overriding Object public Object clone() throws CloneNotSupportedException; // Protected Instance Fields protected long expiration; }
Subclasses
net.jxta.protocol.EndpointAdvertisement
,
net.jxta.protocol.ModuleClassAdvertisement
,
net.jxta.protocol.ModuleImplAdvertisement
,
net.jxta.protocol.ModuleSpecAdvertisement
,
net.jxta.protocol.PeerAdvertisement
,
net.jxta.protocol.PeerGroupAdvertisement
,
net.jxta.protocol.PipeAdvertisement ...
Get JXTA in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.