mirror of
https://github.com/moparisthebest/xeps
synced 2024-12-21 23:28:51 -05:00
29bee13867
git-svn-id: file:///home/ksmith/gitmigration/svn/xmpp/trunk@320 4b5297f7-1745-476d-ba37-a9c6900126ab
121 lines
5.3 KiB
XML
121 lines
5.3 KiB
XML
<?xml version='1.0' encoding='UTF-8'?>
|
|
<!DOCTYPE xep SYSTEM 'xep.dtd' [
|
|
<!ENTITY % ents SYSTEM "xep.ent">
|
|
%ents;
|
|
]>
|
|
<?xml-stylesheet type='text/xsl' href='xep.xsl'?>
|
|
<xep>
|
|
<header>
|
|
<title>Pub-Sub Subscriptions</title>
|
|
<abstract>A proposal for the subscribe half of a publish-subscribe protocol within Jabber.</abstract>
|
|
&LEGALNOTICE;
|
|
<number>0036</number>
|
|
<status>Retracted</status>
|
|
<type>Standards Track</type>
|
|
<sig>Standards</sig>
|
|
<supersedes>None</supersedes>
|
|
<supersededby>XEP-0060</supersededby>
|
|
<shortname>None</shortname>
|
|
&pgmillard;
|
|
&stpeter;
|
|
<revision>
|
|
<version>0.2</version>
|
|
<date>2003-04-22</date>
|
|
<initials>psa</initials>
|
|
<remark>At the request of the authors, the status of this specification has been changed to Retracted since it has been superseded by XEP-0060.</remark>
|
|
</revision>
|
|
<revision>
|
|
<version>0.1</version>
|
|
<date>2002-07-12</date>
|
|
<initials>psa</initials>
|
|
<remark>Initial version based on discussions at JabberConf.</remark>
|
|
</revision>
|
|
</header>
|
|
<section1 topic='Introduction'>
|
|
<p>The Jabber community needs a cohesive standard for publish-subscribe functionality. Certainly there is interest in developing such a standard, as witness the number of proposals written on this topic (&xep0021;, &xep0024;, XEP-0028). Unfortunately, past discussion of this issue has been clouded by confusion over requirements and even terminology. This XEP seeks to clarify the situation somewhat and to provide a protocol for the subscribe half of publish-subscribe functionality within Jabber.</p>
|
|
</section1>
|
|
<section1 topic='Narrative'>
|
|
<p>Traditional pub-sub consists of event notification. This makes it possible for entities to publish data and for other interested entities to receive notification when the data is published. The following are some likely applications of pub-sub functionality within Jabber:</p>
|
|
<ul>
|
|
<li>Auction and trading systems</li>
|
|
<li>Online catalogs</li>
|
|
<li>Document workflow systems</li>
|
|
<li>Network management systems</li>
|
|
<li>NNTP over Jabber</li>
|
|
<li>Groupchat</li>
|
|
</ul>
|
|
<p>In such systems, a subscriber would request to receive notifications about data the subscriber is interested in. We define a "topic" as an object that defines the relationship between a publisher and its subscribers. Specifically, a topic contains three essential collections of information:</p>
|
|
<ol>
|
|
<li>A description of the information that will be provided</li>
|
|
<li>A list of subscribers to items that fit the description</li>
|
|
<li>One or more items that fit the description</li>
|
|
</ol>
|
|
<p>We define an "item" as an instance of data published by the publisher that fits the description associated with a topic. Each item MAY possess a unique identifier that enables the data to be tracked. (NOTE: This XEP does not address the durability of items, i.e., data storage.)</p>
|
|
<p>A topic is addressed by means of a unique "topic ID". A topic ID is simply a string with no required semantic meaning. While a topic ID may have semantic meaning (e.g., '/instruments/guitars/electric' or 'rec.music.dylan'), such meaning is not necessary and a topic ID may be any random string (e.g., 'a1gh83jfn342092'). The only requirement is that a topic ID be unique within the context of a specific pub-sub domain (e.g., pubsub.jabber.org).</p>
|
|
</section1>
|
|
<section1 topic='Protocol Details'>
|
|
|
|
<example caption="Protocol">
|
|
<iq type="set" from="pgm@jabber.org" to="pubsub.jabber.org" id="1">
|
|
<query xmlns="jabber:iq:pubsub">
|
|
<subscribe>
|
|
<topic id="12345"/>
|
|
<topic id="/presence/dizzyd@jabber.org"/>
|
|
</subscribe>
|
|
</query>
|
|
</iq>
|
|
|
|
<iq type="set" from="pgm@jabber.org" to="pubsub.jabber.org" id="1">
|
|
<query xmlns="jabber:iq:pubsub">
|
|
<unsubscribe>
|
|
<topic id="12345"/>
|
|
</unsubscribe>
|
|
</query>
|
|
</iq>
|
|
|
|
<iq type="set" to="pubsub.jabber.org" id="1">
|
|
<query xmlns="jabber:iq:pubsub">
|
|
<publish>
|
|
<topic id="12345">
|
|
<item>some kind of cdata goes here</item>
|
|
</topic>
|
|
</publish>
|
|
</query>
|
|
</iq>
|
|
|
|
<iq type="set" to="pubsub.jabber.org" id="1">
|
|
<query xmlns="jabber:iq:pubsub">
|
|
<createtopic>
|
|
<topic id="new_topic">
|
|
<profile>
|
|
<!-- is this even remotely close?? -->
|
|
<publisher>pgm@jabber.org</publisher>
|
|
<publisher>dizzyd@jabber.org</publisher>
|
|
</profile>
|
|
</topic>
|
|
<topic id="another_topic>
|
|
<profile>
|
|
<publisher/>
|
|
</profile>
|
|
</topic>
|
|
</createtopic>
|
|
</query>
|
|
</iq>
|
|
|
|
<iq type="set" to="pubsub.jabber.org" id="1">
|
|
<query xmlns="jabber:iq:pubsub">
|
|
<removetopic>
|
|
<topic id="12345"/>
|
|
</removetopic>
|
|
</query>
|
|
</iq>
|
|
</example>
|
|
|
|
</section1>
|
|
|
|
<section1 topic='Author Note' anchor='authornote'>
|
|
<p>Peter Millard, co-author of this specification, died on April 26, 2006.</p>
|
|
</section1>
|
|
|
|
</xep>
|