Title: RE: [JDEV] jabber:iq:private

From the Jabber protocol guide.

http://docs.jabber.org/general/html/protocol.html

jabber:iq:private -- Private Data Storage

Updated in 1.4 (draft protocol!)

The Private Data Storage namespace provides a mechanism for storing private data on the Jabber server. The data stored can be anything, as long as it is valid XML. The typical usage for this namespace might be to store client preferences on the server-side.

Example 1 (Client Storing Private Data):
<iq type="set" id="1001">
  <query xmlns="jabber:iq:private">
    <winjab xmlns="winjab:prefs">
    <defaultnick>Hamlet</defaultnick>
    </winjab>
  </query>
</iq>
Example 2 (Client Retrieving Private Data):
<iq type="get" id="1002">
  <query xmlns="jabber:iq:private">
    <winjab xmlns="winjab:prefs"/>
  </query>
</iq>
In addition to Private Data Storage, the 1.4 server includes the capability to store publicly-accessible XML on the server in any valid namespace (namespaces beginning with "jabber:" are reserved for use by the Jabber system). This data is stored in the roster of the user who sends the iq type="set" packet to the server.

Example 1 (Client Storing Public Data):
<iq type="set" id="1003">
  <query xmlns="stpeter:public:favorites">
    <fav_things>
    <food>Thai</food>
    <color>blue</color>
    <composer>Bach</composer>
    </fav_things>
  </query>
</iq>
Example 2 (Client Retrieving Public Data):
<iq type="get" id="1004">
  <query xmlns="stpeter:public:favorites">
    <fav_things/>
  </query>
</iq>
-----Original Message-----
From: Scott Cote [mailto:[EMAIL PROTECTED]]
Sent: Saturday, June 23, 2001 3:39 PM
To: [EMAIL PROTECTED]
Subject: [JDEV] jabber:iq:private


Could someone give me documentation on the jabber:iq:private namespace?

Thanks.

-Scott

Reply via email to