Project JXTA

net.jxta.protocol
Class PeerInfoQueryMessage

java.lang.Object
  extended by net.jxta.protocol.PeerInfoQueryMessage

public abstract class PeerInfoQueryMessage
extends Object

This abstract class define the PeerInfoService Query message.


Constructor Summary
PeerInfoQueryMessage()
           
 
Method Summary
abstract  Document getDocument(MimeMediaType encodeAs)
           
static String getMessageType()
          returns the Message type
 Element getRequest()
          returns the request
 PeerID getSourcePid()
          returns the sender's pid
 PeerID getTargetPid()
          returns the target pid
 void setRequest(Element request)
          sets the request
 void setSourcePid(PeerID pid)
          sets the sender's pid
 void setTargetPid(PeerID pid)
          sets the target's pid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PeerInfoQueryMessage

public PeerInfoQueryMessage()
Method Detail

getMessageType

public static String getMessageType()
returns the Message type

Returns:
a string
Since:
JXTA 1.0

getSourcePid

public PeerID getSourcePid()
returns the sender's pid

Returns:
a string representing the peer's id
Since:
JXTA 1.0

setSourcePid

public void setSourcePid(PeerID pid)
sets the sender's pid

Parameters:
pid - a string representing a peer's id
Since:
JXTA 1.0

getTargetPid

public PeerID getTargetPid()
returns the target pid

Returns:
a string representing the peer's id
Since:
JXTA 1.0

setTargetPid

public void setTargetPid(PeerID pid)
sets the target's pid

Parameters:
pid - a string representing a peer's id
Since:
JXTA 1.0

getRequest

public Element getRequest()
returns the request

Returns:
a structured document representing request
Since:
JXTA 1.0

setRequest

public void setRequest(Element request)
sets the request

Parameters:
request - a structured document representing a peerinfo request
Since:
JXTA 1.0

getDocument

public abstract Document getDocument(MimeMediaType encodeAs)

JXTA J2SE