pawn.messages
Class PresenceResponseMessage

java.lang.Object
  |
  +--pawn.messages.PresenceResponseMessage
Direct Known Subclasses:
PresenceResponse

public abstract class PresenceResponseMessage
extends java.lang.Object

An abstract class defining a response to a request for presence information. This response is responsible for sending a presence advertisement either in response to a Presence Query Message, or to update the members of the peer group with a peer's current presence status.


Constructor Summary
PresenceResponseMessage()
           
 
Method Summary
abstract  net.jxta.document.Document getDocument(net.jxta.document.MimeMediaType asMimeType)
          Returns a Document object containing the response's document tree.
 net.jxta.protocol.PresenceAdvertisement getPresenceAdvertisement()
          Returns the presence advertisement containing the presence information.
 void setPresenceAdvertisement(net.jxta.protocol.PresenceAdvertisement presenceAdvertisement)
          Sets the presence advertisement containing the presence information for the response object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PresenceResponseMessage

public PresenceResponseMessage()
Method Detail

getDocument

public abstract net.jxta.document.Document getDocument(net.jxta.document.MimeMediaType asMimeType)
Returns a Document object containing the response's document tree.

Parameters:
asMimeType - the desired MIME type for the response rendering.
Returns:
the Document containing the response's document object tree.

getPresenceAdvertisement

public net.jxta.protocol.PresenceAdvertisement getPresenceAdvertisement()
Returns the presence advertisement containing the presence information.

Returns:
the presence advertisement object.

setPresenceAdvertisement

public void setPresenceAdvertisement(net.jxta.protocol.PresenceAdvertisement presenceAdvertisement)
Sets the presence advertisement containing the presence information for the response object.

Parameters:
presenceAdvertisement - the presence advertisement object.