Name

PeerInfoQueryMessage

Synopsis

This message is sent from one peer to another in order to query a peer information advertisment. It contains the following fields:

SourcePid

The sender’s peer ID

TargetPid

The target’s peer ID

Request

The structured document that represents the query request

public abstract class PeerInfoQueryMessage {
// Public Constructors
   public PeerInfoQueryMessage();  
// Public Class Methods
   public static String getMessageType();  
// Property Accessor Methods (by property name)
   public net.jxta.document.Element getRequest();  
   public void setRequest(net.jxta.document.Element request);  
   public net.jxta.id.ID getSourcePid();  
   public void setSourcePid(net.jxta.id.ID pid);  
   public net.jxta.id.ID getTargetPid();  
   public void setTargetPid(net.jxta.id.ID pid);  
// Public Instance Methods
   public abstract net.jxta.document.Document getDocument(net.jxta.document.MimeMediaType encodeAs);
}

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.