Name
DiscoveryResponseMsg
Synopsis
This message is sent in response to a query message in the PDP. These messages are generally created and processed by the discovery service without intervention by the developer. This message contains the following elements:
-
Type
The type of discovery (
PEER
,GROUP
, orADV
)-
Adv
The advertisement of the peer that initiated discovery
-
Attr
The attribute being queried
-
Value
The value of the attribute being queried
-
Responses
A vector of advertisements that match the query
-
Expirations
A vector of expiration times; these correspond to the advertisement in the responses vector
public abstract class DiscoveryResponseMsg { // Public Constructors public DiscoveryResponseMsg(); // Public Class Methods public static String getAdvertisementType(); // Property Accessor Methods (by property name) public int getDiscoveryType(); public void setDiscoveryType(int type); public java.util.Enumeration getExpirations(); public void setExpirations(java.util.Vector expirations); public String getPeerAdv(); public void setPeerAdv(String peer); public String getQueryAttr(); public void setQueryAttr(String attr); public String getQueryValue(); public void setQueryValue(String value); public int getResponseCount(); public void setResponseCount(int count); public java.util.Enumeration getResponses(); public void setResponses(java.util.Vector responses); // Public Instance Methods public abstract net.jxta.document.Document getDocument(net.jxta.document.MimeMediaType ...
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.