mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-24 18:22:24 -05:00
0.4
git-svn-id: file:///home/ksmith/gitmigration/svn/xmpp/trunk@914 4b5297f7-1745-476d-ba37-a9c6900126ab
This commit is contained in:
parent
ff7d1dc5c9
commit
71d10484cb
199
xep-0168.xml
199
xep-0168.xml
@ -21,9 +21,15 @@
|
|||||||
</dependencies>
|
</dependencies>
|
||||||
<supersedes/>
|
<supersedes/>
|
||||||
<supersededby/>
|
<supersededby/>
|
||||||
<shortname>rap</shortname>
|
<shortname>TO BE ASSIGNED</shortname>
|
||||||
&stpeter;
|
&stpeter;
|
||||||
&hildjj;
|
&hildjj;
|
||||||
|
<revision>
|
||||||
|
<version>0.4</version>
|
||||||
|
<date>2007-06-06</date>
|
||||||
|
<initials>psa</initials>
|
||||||
|
<remark><p>Added section on RAP-based routing of messages sent to bare JIDs; removed RAP request protocol; changed app attribute to ns attribute; removed the application types registry since it is unnecessary if the ns attribute specifies the XML namespace of the data most closely associated with the application type; updated namespaces to conform to XMPP Registrar processes.</p></remark>
|
||||||
|
</revision>
|
||||||
<revision>
|
<revision>
|
||||||
<version>0.3</version>
|
<version>0.3</version>
|
||||||
<date>2006-09-17</date>
|
<date>2006-09-17</date>
|
||||||
@ -40,7 +46,7 @@
|
|||||||
<version>0.1</version>
|
<version>0.1</version>
|
||||||
<date>2005-12-15</date>
|
<date>2005-12-15</date>
|
||||||
<initials>psa</initials>
|
<initials>psa</initials>
|
||||||
<remark><p>Initial version.</p></remark>
|
<remark><p>Initial published version.</p></remark>
|
||||||
</revision>
|
</revision>
|
||||||
<revision>
|
<revision>
|
||||||
<version>0.0.6</version>
|
<version>0.0.6</version>
|
||||||
@ -80,7 +86,7 @@
|
|||||||
</revision>
|
</revision>
|
||||||
</header>
|
</header>
|
||||||
<section1 topic='Introduction' anchor='intro'>
|
<section1 topic='Introduction' anchor='intro'>
|
||||||
<p>Within the Extensible Messaging and Presence Protocol (XMPP; see &rfc3920;), presence indicates availability for communication -- specifically, communication via XMPP messaging (usually in the form of "instant messaging" or IM as described in &rfc3921;). However, a wide variety of entities might provide XMPP presence, including entities that are not primarily focused on IM (e.g., phones) or even entities that do not support XMPP messaging at all.</p>
|
<p>Within the Extensible Messaging and Presence Protocol (XMPP; see &rfc3920;), presence indicates availability for communication -- specifically, communication via XMPP messaging in the "jabber:client" namespace (usually in the form of "instant messaging" or IM as described in &rfc3921;). However, a wide variety of entities might provide XMPP presence, including entities that are not primarily focused on IM (e.g., phones) or even entities that do not support XMPP messaging at all.</p>
|
||||||
<p>Consider a scenario in which a contact wants to initiate a voice chat (e.g., via &xep0166;) with a user who has the following three XMPP resources:</p>
|
<p>Consider a scenario in which a contact wants to initiate a voice chat (e.g., via &xep0166;) with a user who has the following three XMPP resources:</p>
|
||||||
<table caption='Application Presence'>
|
<table caption='Application Presence'>
|
||||||
<tr>
|
<tr>
|
||||||
@ -105,41 +111,41 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<p>If the contact chooses the resource with which it initiates a voice chat based on the user's default XMPP presence priority (i.e., priority for XMPP messaging), the resulting behavior could be misleading (i.e., initiating the voice chat with the "desktop" resource rather than the "mobile" resource).</p>
|
<p>If the contact chooses the resource with which it initiates a voice chat based on the user's default XMPP presence priority (i.e., priority for XMPP messaging), the resulting behavior could be misleading (i.e., initiating the voice chat with the "desktop" resource rather than the "mobile" resource).</p>
|
||||||
<p>What is needed is a way for the user's clients to indicate that the application priority for the three resources is different from the standard XMPP messaging priority. This document defines such a mechanism via an optional XMPP presence extension.</p>
|
<p>What is needed is a way for the user's clients to indicate that the application priority for the three resources is different from the standard XMPP messaging priority. Such information can also be used by an XMPP to route XMPP &MESSAGE; stanzas directed to a user's bare JID (&BAREJID;). This document defines such a mechanism via an optional XMPP presence extension.</p>
|
||||||
<p>In addition, this document also defines a way for an XMPP server to flag which resource it considers to be primary for any given application type, if it has information -- such as communication preferences -- that can help determine the primary resource.</p>
|
<p>In addition, this document also defines a way for an XMPP server to flag which resource it considers to be primary for any given application type, if it has information -- such as communication preferences -- that can help determine the primary resource.</p>
|
||||||
</section1>
|
</section1>
|
||||||
<section1 topic='Application Priority' anchor='primary'>
|
<section1 topic='Application Priority' anchor='primary'>
|
||||||
<p>Consider the three resources ("desktop", "pda", and "mobile") mentioned above. The presence stanzas received by a contact for those three resources would be as follows:</p>
|
<p>Consider the three resources ("desktop", "pda", and "mobile") mentioned above. The presence stanzas received by a contact for those three resources would be as follows &NSNOTE;:</p>
|
||||||
<example caption='Contact receives presence from user'><![CDATA[
|
<example caption='Contact receives presence from user'><![CDATA[
|
||||||
<presence from='juliet@capulet.com/desktop' to='romeo@montague.net/home'>
|
<presence from='juliet@capulet.com/desktop' to='romeo@montague.net/home'>
|
||||||
<priority>10</priority>
|
<priority>10</priority>
|
||||||
<rap xmlns='http://jabber.org/protocol/rap' app='jingle-audio' num='5'/>
|
<rap xmlns='http://www.xmpp.org/extensions/xep-0168.html#ns' ns='http://www.xmpp.org/extensions/xep-0167#ns' num='5'/>
|
||||||
</presence>
|
</presence>
|
||||||
|
|
||||||
<presence from='juliet@capulet.com/pda' to='romeo@montague.net/home'>
|
<presence from='juliet@capulet.com/pda' to='romeo@montague.net/home'>
|
||||||
<priority>5</priority>
|
<priority>5</priority>
|
||||||
<rap xmlns='http://jabber.org/protocol/rap' app='jingle-audio' num='-1'/>
|
<rap xmlns='http://www.xmpp.org/extensions/xep-0168.html#ns' ns='http://www.xmpp.org/extensions/xep-0167#ns' num='-1'/>
|
||||||
</presence>
|
</presence>
|
||||||
|
|
||||||
<presence from='juliet@capulet.com/mobile' to='romeo@montague.net/home'>
|
<presence from='juliet@capulet.com/mobile' to='romeo@montague.net/home'>
|
||||||
<priority>-1</priority>
|
<priority>-1</priority>
|
||||||
<rap xmlns='http://jabber.org/protocol/rap' app='jingle-audio' num='10'/>
|
<rap xmlns='http://www.xmpp.org/extensions/xep-0168.html#ns' ns='http://www.xmpp.org/extensions/xep-0167#ns' num='10'/>
|
||||||
</presence>
|
</presence>
|
||||||
]]></example>
|
]]></example>
|
||||||
<p>(Note: This protocol uses a 'num' attribute rather than a 'priority' attribute to reduce confusion with XMPP presence and also to save some bytes.)</p>
|
<p>(Note: This protocol uses a 'num' attribute rather than a 'priority' attribute to reduce confusion with XMPP presence.)</p>
|
||||||
<p>The following business rules apply to resource application presence provided by the client:</p>
|
<p>The following business rules apply to resource application presence provided by the client:</p>
|
||||||
<ol start='1'>
|
<ol start='1'>
|
||||||
<li><p>A client SHOULD NOT specify resource application presence if the priority for that application is not different from the resource's XMPP messaging priority.</p></li>
|
<li><p>A client SHOULD NOT specify resource application presence if the priority for that application is the same as the resource's XMPP messaging priority.</p></li>
|
||||||
<li><p>A client MUST NOT generate a <rap/> element that has an 'app' attribute whose value is "messaging" or that has no 'app' attribute (since the default 'app' is "messaging").</p></li>
|
<li><p>A client MUST NOT generate a <rap/> element that has a 'ns' attribute whose value is "jabber:client" or that has no 'ns' attribute (since the default 'ns' is "jabber:client").</p></li>
|
||||||
</ol>
|
</ol>
|
||||||
</section1>
|
</section1>
|
||||||
<section1 topic='Flagging the Primary Resource for a Given Application Type' anchor='flag'>
|
<section1 topic='Flagging the Primary Resource' anchor='flag'>
|
||||||
<p>The user's server may have special information that enables it to flag a resource as primary for a given application type. For instance, the server may include a communication policy service that enables the user to define (outside the context of any presence priorities) that she would prefer to be called at her "desktop" resource only between the hours of 9:00 AM and 5:00 PM local time, prefer to be called on her mobile at all other times, and so on.</p>
|
<p>The user's server may have special information that enables it to flag a resource as primary for a given application type. For instance, the server may include a communication policy service that enables the user to define (outside the context of any presence priorities) that she would prefer to be called at her desktop computer only between the hours of 9:00 AM and 5:00 PM local time, prefer to be called on her mobile phone at all other times, and so on.</p>
|
||||||
<p>To flag the primary resource related to a specific application type, the server shall add a <primary/> child to the relevant RAP element. Here is an example:</p>
|
<p>To flag the primary resource related to a specific application type, the server shall add a <primary/> child to the relevant RAP element. Here is an example:</p>
|
||||||
<example caption='Primary resource flag'><![CDATA[
|
<example caption='Primary resource flag'><![CDATA[
|
||||||
<presence from='juliet@capulet.com/mobile'>
|
<presence from='juliet@capulet.com/mobile'>
|
||||||
<priority>-1</priority>
|
<priority>-1</priority>
|
||||||
<rap xmlns='http://jabber.org/protocol/rap' app='jingle-audio' num='10'>
|
<rap xmlns='http://www.xmpp.org/extensions/xep-0168.html#ns' ns='http://www.xmpp.org/extensions/xep-0167#ns' num='10'>
|
||||||
<primary/>
|
<primary/>
|
||||||
</rap>
|
</rap>
|
||||||
</presence>
|
</presence>
|
||||||
@ -147,53 +153,40 @@
|
|||||||
<p>The following business rules apply to resource flagging by the server:</p>
|
<p>The following business rules apply to resource flagging by the server:</p>
|
||||||
<ol start='1'>
|
<ol start='1'>
|
||||||
<li><p>A server MAY add the primary resource flag to the presence broadcasts generated by the resource it determines is "most available" for a given application type.</p></li>
|
<li><p>A server MAY add the primary resource flag to the presence broadcasts generated by the resource it determines is "most available" for a given application type.</p></li>
|
||||||
<li><p>Because the default 'app' is "im", to flag the primary resource for XMPP messaging the server SHOULD NOT include an 'app' attribute, SHOULD NOT include a 'num' attribute, and MUST include a <primary/> child.</p></li>
|
<li><p>Because the default 'ns' is "jabber:client", to flag the primary resource for XMPP messaging the server SHOULD NOT include a 'ns' attribute, SHOULD NOT include a 'num' attribute, and MUST include a <primary/> child.</p></li>
|
||||||
<li><p>An available resource that has specified a negative priority for an application type MUST NOT be flagged as the primary resource for that application type.</p></li>
|
<li><p>An available resource that has specified a negative priority for an application type MUST NOT be flagged as the primary resource for that application type.</p></li>
|
||||||
<li><p>A client SHOULD NOT include the primary resource flag in presence stanzas that it generates; however, if a client includes the primary resource flag in a presence stanza, the server SHOULD remove or overwrite the flag.</p></li>
|
<li><p>A client SHOULD NOT include the primary resource flag in presence stanzas that it generates; however, if a client includes the primary resource flag in a presence stanza, the server SHOULD remove or overwrite the flag.</p></li>
|
||||||
<li><p>In response to a presence probe, a server SHOULD send presence from the primary resource first (this enables the receiving client to skip any local most-available algorithms it might implement).</p></li>
|
<li><p>In response to a presence probe, a server SHOULD send presence from the primary resource first (this enables the receiving client to skip any local most-available algorithms it might implement).</p></li>
|
||||||
<li><p>If the primary resource changes for a given application type, a server MUST push presence (including the primary resource flag) for the new primary resource. If the change in primary resource occurs because of a presence broadcast from the current primary resource, the server MUST push presence from the current primary resource (without the primary resource flag) before pushing presence from the new primary resource (including the primary resource flag).</p></li>
|
<li><p>If the primary resource changes for a given application type, a server MUST push presence (including the primary resource flag) for the new primary resource. If the change in primary resource occurs because of a presence broadcast from the current primary resource, the server MUST push presence from the current primary resource (without the primary resource flag) before pushing presence from the new primary resource (including the primary resource flag).</p></li>
|
||||||
</ol>
|
</ol>
|
||||||
</section1>
|
</section1>
|
||||||
<section1 topic='Requesting RAP Data Via IQ' anchor='raprequest'>
|
<section1 topic='RAP-Based Message Routing' anchor='route'>
|
||||||
<p>In the interest of saving bandwidth, a server MAY choose to strip all RAP data out of presence stanzas and instead provide RAP data only on request via IQ interactions.
|
<p>A server MAY use the RAP data provided by clients in order to route incoming &MESSAGE; stanzas directed to the bare JID (&BAREJID;) of a registered account. In order to enable such routing, the sender MUST include an empty <route/> element qualified by the 'http://www.xmpp.org/extensions/xep-0168.html#ns-raproute' namespace &NSNOTE; including an 'ns' attribute corresponding to the desired application.</p>
|
||||||
A likely scenario is as follows:</p>
|
<p>For example, consider a &xep0155; request send from one user (Romeo) to another (Juliet), where the users do not share presence:</p>
|
||||||
<ol start='1'>
|
<example caption="User requests session"><![CDATA[
|
||||||
<li><p>Contact's client sends &xep0030; information request to user's client or receives &xep0115; data from user's client, and thereby discovers that user's client supports the 'http://jabber.org/protocol/rap' namespace.</p></li>
|
<message type='headline'
|
||||||
<li><p>User's client publishes RAP extensions but user's server strips them out in presence broadcasts.</p></li>
|
from='romeo@montague.net/orchard'
|
||||||
<li><p>Contact decides to initiate a non-IM interaction with user.</p></li>
|
to='juliet@capulet.com'>
|
||||||
<li><p>Contact's client notices the lack of RAP data from user (despite discovered support) and sends disco#info request to user's server, which signals that it supports the 'http://jabber.org/protocol/raprequest' namespace.</p></li>
|
<route xmlns='http://www.xmpp.org/extensions/xep-0168.html#ns-raproute'
|
||||||
<li><p>Contact's client sends RAP request to user's bare JID (&BAREJID;).</p></li>
|
ns='http://www.xmpp.org/extensions/xep-0167#ns'/>
|
||||||
<li><p>If contact is authorized to view user's presence data, user's server returns the latest RAP data for all of the user's resources. (Note: See the <link url='#security'>Security Considerations</link> section of this document for an important proviso regarding access to RAP data.)</p></li>
|
<thread>ffd7076498744578d10edabfe7f4a866</thread>
|
||||||
</ol>
|
<feature xmlns='http://jabber.org/protocol/feature-neg'>
|
||||||
<p>An example protocol flow for the last two steps is as follows...</p>
|
<x xmlns='jabber:x:data' type='form'>
|
||||||
<p>First, the contact's client requests the user's RAP data by sending a request to the user's bare JID:</p>
|
<title>Open chat with Romeo?</title>
|
||||||
<example caption='Contact requests RAP data from user's server'><![CDATA[
|
<field var='FORM_TYPE' type='hidden'>
|
||||||
<iq type='get' from='romeo@montague.net/home' to='juliet@capulet.com'>
|
<value>urn:xmpp:ssn</value>
|
||||||
<raprequest xmlns='http://jabber.org/protocol/raprequest'/>
|
</field>
|
||||||
</iq>
|
<field label='Accept this session?' type='boolean' var='accept'>
|
||||||
|
<value>true</value>
|
||||||
|
<required/>
|
||||||
|
</field>
|
||||||
|
...
|
||||||
|
</feature>
|
||||||
|
</message>
|
||||||
]]></example>
|
]]></example>
|
||||||
<p>On behalf of the user, the user's server then returns the full &PRESENCE; stanzas (containing RAP data) for each of the user's connected clients:</p>
|
<p>If Juliet's server supports RAP routing, it would then deliver the message to whichever of Juliet's resources has the highest priority for the "http://www.xmpp.org/extensions/xep-0167#ns" application type.</p>
|
||||||
<example caption='User's server returns RAP data'><![CDATA[
|
|
||||||
<iq type='result' from='romeo@montague.net/home' to='juliet@capulet.com'>
|
|
||||||
<raprequest xmlns='http://jabber.org/protocol/raprequest'>
|
|
||||||
<presence from='juliet@capulet.com/desktop' xmlns='jabber:client'>
|
|
||||||
<priority>10</priority>
|
|
||||||
<rap xmlns='http://jabber.org/protocol/rap' app='jingle-audio' num='5'/>
|
|
||||||
</presence>
|
|
||||||
<presence from='juliet@capulet.com/pda' xmlns='jabber:client'>
|
|
||||||
<priority>5</priority>
|
|
||||||
<rap xmlns='http://jabber.org/protocol/rap' app='jingle-audio' num='-1'/>
|
|
||||||
</presence>
|
|
||||||
<presence from='juliet@capulet.com/mobile' xmlns='jabber:client'>
|
|
||||||
<priority>-1</priority>
|
|
||||||
<rap xmlns='http://jabber.org/protocol/rap' app='jingle-audio' num='10'/>
|
|
||||||
</presence>
|
|
||||||
</raprequest>
|
|
||||||
</iq>
|
|
||||||
]]></example>
|
|
||||||
<p>Note: The XML data of the server's response to a RAP request may seem to be potentially confusing, but it is fully consistent with &w3xmlnamespaces; as well as the schemas for the 'jabber:client' and 'http://jabber.org/protocol/raprequest' namespaces.</p>
|
|
||||||
</section1>
|
</section1>
|
||||||
<section1 topic='Service Discovery' anchor='disco'>
|
<section1 topic='Determining Support' anchor='disco'>
|
||||||
<p>In order to discover whether a server or other entity supports this protocol, an entity MUST use &xep0030;.</p>
|
<p>In order to discover whether a server or other entity supports this protocol, an entity MUST use &xep0030;.</p>
|
||||||
<example caption='Entity queries a server regarding protocol support'><![CDATA[
|
<example caption='Entity queries a server regarding protocol support'><![CDATA[
|
||||||
<iq type='get'
|
<iq type='get'
|
||||||
@ -203,7 +196,11 @@
|
|||||||
<query xmlns='http://jabber.org/protocol/disco#info'/>
|
<query xmlns='http://jabber.org/protocol/disco#info'/>
|
||||||
</iq>
|
</iq>
|
||||||
]]></example>
|
]]></example>
|
||||||
<p>If the queried entity supports resource application presence, it MUST return a feature of "http://jabber.org/protocol/rap":</p>
|
<p>If the queried entity supports the functionality specified herein, it MUST return the following features &NSNOTE;:</p>
|
||||||
|
<ul>
|
||||||
|
<li>For RAP, "http://www.xmpp.org/extensions/xep-0168.html#ns"</li>
|
||||||
|
<li>For RAP routing, "http://www.xmpp.org/extensions/xep-0168.html#ns-route"</li>
|
||||||
|
</ul>
|
||||||
<example caption='Server communicates protocol support for RAP'><![CDATA[
|
<example caption='Server communicates protocol support for RAP'><![CDATA[
|
||||||
<iq type='result'
|
<iq type='result'
|
||||||
from='capulet.com'
|
from='capulet.com'
|
||||||
@ -211,21 +208,8 @@
|
|||||||
id='disco1'>
|
id='disco1'>
|
||||||
<query xmlns='http://jabber.org/protocol/disco#info'>
|
<query xmlns='http://jabber.org/protocol/disco#info'>
|
||||||
...
|
...
|
||||||
<feature var='http://jabber.org/protocol/rap'/>
|
<feature var='http://www.xmpp.org/extensions/xep-0168.html#ns'/>
|
||||||
...
|
<feature var='http://www.xmpp.org/extensions/xep-0168.html#ns-route'/>
|
||||||
</query>
|
|
||||||
</iq>
|
|
||||||
]]></example>
|
|
||||||
<p>If the queried entity supports resource application presence as well as RAP requests (see the <link url='raprequest'>Requesting RAP Data Via IQ</link> section of this document), it MUST return features of "http://jabber.org/protocol/rap" and "http://jabber.org/protocol/raprequest":</p>
|
|
||||||
<example caption='Server communicates protocol support for RAP as well as RAP Request'><![CDATA[
|
|
||||||
<iq type='result'
|
|
||||||
from='capulet.com'
|
|
||||||
to='juliet@capulet.com/balcony'
|
|
||||||
id='disco1'>
|
|
||||||
<query xmlns='http://jabber.org/protocol/disco#info'>
|
|
||||||
...
|
|
||||||
<feature var='http://jabber.org/protocol/rap'/>
|
|
||||||
<feature var='http://jabber.org/protocol/raprequest'/>
|
|
||||||
...
|
...
|
||||||
</query>
|
</query>
|
||||||
</iq>
|
</iq>
|
||||||
@ -233,56 +217,18 @@
|
|||||||
</section1>
|
</section1>
|
||||||
<section1 topic='Security Considerations' anchor='security'>
|
<section1 topic='Security Considerations' anchor='security'>
|
||||||
<p>Neither client publishing of resource application priority nor server flagging of the primary resource introduces any known security vulnerabilities or compromises of user privacy.</p>
|
<p>Neither client publishing of resource application priority nor server flagging of the primary resource introduces any known security vulnerabilities or compromises of user privacy.</p>
|
||||||
<p>If a server supports RAP requests, it MUST carefully control access to RAP data in order to guard against presence leaks and directory harvest attacks. Specifically, if the requesting entity is not authorized (e.g., a contact with a presence subscription of "both" or "from" as described in <cite>RFC 3921</cite>) or is not explicitly trusted (e.g., a server in a trusted network), the server MUST return a &forbidden; error in response to RAP requests.</p>
|
|
||||||
</section1>
|
</section1>
|
||||||
<section1 topic='IANA Considerations' anchor='iana'>
|
<section1 topic='IANA Considerations' anchor='iana'>
|
||||||
<p>This document requires no interaction with &IANA;.</p>
|
<p>This document requires no interaction with &IANA;.</p>
|
||||||
</section1>
|
</section1>
|
||||||
<section1 topic='XMPP Registrar Considerations' anchor='registrar'>
|
<section1 topic='XMPP Registrar Considerations' anchor='registrar'>
|
||||||
<section2 topic='Protocol Namespaces' anchor='registrar-ns'>
|
<section2 topic='Protocol Namespaces' anchor='registrar-ns'>
|
||||||
<p>The ®ISTRAR; shall include the following namespaces in its registry of protocol namespaces:</p>
|
<p>Until this specification advances to a status of Draft, its associated namespaces shall be:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>http://jabber.org/protocol/rap</li>
|
<li>http://www.xmpp.org/extensions/xep-0168.html#ns</li>
|
||||||
<li>http://jabber.org/protocol/raprequest</li>
|
<li>http://www.xmpp.org/extensions/xep-0168.html#ns-route</li>
|
||||||
</ul>
|
</ul>
|
||||||
</section2>
|
<p>Upon advancement of this specification, the ®ISTRAR; shall issue permanent namespaces in accordance with the process defined in Section 4 of &xep0053;.</p>
|
||||||
<section2 topic='Application Types Registry' anchor='registrar-apps'>
|
|
||||||
<p>The XMPP Registrar shall maintain a registry of application types. Although strictly speaking this should not be necessary, it is desirable to maintain a list of "short names" for various application types rather than using long XML namespaces, especially in presence broadcasts. For example, a short name of "jingle-audio" is only 12 characters long, whereas the full XML namespace "http://jabber.org/protocol/jingle/description/audio" is 48 characters long. The difference can be quite significant when many presence stanzas are sent.</p>
|
|
||||||
<section3 topic='Process' anchor='registrar-apps-process'>
|
|
||||||
®PROCESS;
|
|
||||||
<code><![CDATA[
|
|
||||||
<app>
|
|
||||||
<name>the value of the 'app' attribute</name>
|
|
||||||
<ns>the full namespace associated with the relevant protocol</ns>
|
|
||||||
<desc>a natural-language description of the application type</desc>
|
|
||||||
<doc>the document in which this application type is specified</doc>
|
|
||||||
</app>
|
|
||||||
]]></code>
|
|
||||||
</section3>
|
|
||||||
<section3 topic='Initial Registration' anchor='registrar-apps-init'>
|
|
||||||
<code><![CDATA[
|
|
||||||
<app>
|
|
||||||
<name>jingle-audio</name>
|
|
||||||
<ns>http://jabber.org/protocol/jingle/description/audio</ns>
|
|
||||||
<desc>Jingle audio sessions</desc>
|
|
||||||
<doc>XEP-0167</doc>
|
|
||||||
</app>
|
|
||||||
|
|
||||||
<app>
|
|
||||||
<name>jingle-video</name>
|
|
||||||
<ns>http://jabber.org/protocol/jingle/description/video</ns>
|
|
||||||
<desc>Jingle video sessions</desc>
|
|
||||||
<doc>XEP-0180</doc>
|
|
||||||
</app>
|
|
||||||
|
|
||||||
<app>
|
|
||||||
<name>messaging</name>
|
|
||||||
<ns>jabber:client</ns>
|
|
||||||
<desc>Standard XMPP messaging</desc>
|
|
||||||
<doc>RFC 3921</doc>
|
|
||||||
</app>
|
|
||||||
]]></code>
|
|
||||||
</section3>
|
|
||||||
</section2>
|
</section2>
|
||||||
</section1>
|
</section1>
|
||||||
<section1 topic='XML Schemas' anchor='schema'>
|
<section1 topic='XML Schemas' anchor='schema'>
|
||||||
@ -292,8 +238,8 @@
|
|||||||
|
|
||||||
<xs:schema
|
<xs:schema
|
||||||
xmlns:xs='http://www.w3.org/2001/XMLSchema'
|
xmlns:xs='http://www.w3.org/2001/XMLSchema'
|
||||||
targetNamespace='http://jabber.org/protocol/rap'
|
targetNamespace='http://www.xmpp.org/extensions/xep-0168.html#ns'
|
||||||
xmlns='http://jabber.org/protocol/rap'
|
xmlns='http://www.xmpp.org/extensions/xep-0168.html#ns'
|
||||||
elementFormDefault='qualified'>
|
elementFormDefault='qualified'>
|
||||||
|
|
||||||
<xs:element name='rap'>
|
<xs:element name='rap'>
|
||||||
@ -301,7 +247,7 @@
|
|||||||
<xs:sequence>
|
<xs:sequence>
|
||||||
<xs:element name='primary' type='empty' minOccurs='0'/>
|
<xs:element name='primary' type='empty' minOccurs='0'/>
|
||||||
</xs:sequence>
|
</xs:sequence>
|
||||||
<xs:attribute name='app' type='xs:nmtoken' default='messaging'/>
|
<xs:attribute name='ns' type='xs:string' default='jabber:client'/>
|
||||||
<xs:attribute name='num' type='xs:byte'/>
|
<xs:attribute name='num' type='xs:byte'/>
|
||||||
</xs:complexType>
|
</xs:complexType>
|
||||||
</xs:element>
|
</xs:element>
|
||||||
@ -315,26 +261,33 @@
|
|||||||
|
|
||||||
]]></code>
|
]]></code>
|
||||||
</section2>
|
</section2>
|
||||||
<section2 topic='RAP Request' anchor='schema-raprequest'>
|
<section2 topic='RAP Routing' anchor='schema-raproute'>
|
||||||
<code><![CDATA[
|
<code><![CDATA[
|
||||||
<?xml version='1.0' encoding='UTF-8'?>
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
|
||||||
<xs:schema
|
<xs:schema
|
||||||
xmlns:xs='http://www.w3.org/2001/XMLSchema'
|
xmlns:xs='http://www.w3.org/2001/XMLSchema'
|
||||||
targetNamespace='http://jabber.org/protocol/raprequest'
|
targetNamespace='http://www.xmpp.org/extensions/xep-0168.html#ns-route'
|
||||||
xmlns='http://jabber.org/protocol/raprequest'
|
xmlns='http://www.xmpp.org/extensions/xep-0168.html#ns-route'
|
||||||
elementFormDefault='qualified'>
|
elementFormDefault='qualified'>
|
||||||
|
|
||||||
<xs:import namespace='jabber:client'/>
|
<xs:element name='route'>
|
||||||
|
|
||||||
<xs:element name='raprequest'>
|
|
||||||
<xs:complexType>
|
<xs:complexType>
|
||||||
<xs:sequence xmlns:xmpp='jabber:client'>
|
<xs:simpleContent>
|
||||||
<xs:element name='xmpp:presence' minOccurs='0'/>
|
<xs:extension base='empty'>
|
||||||
</xs:sequence>
|
<xs:attribute name='ns' type='xs:string' default='jabber:client'/>
|
||||||
|
</xs:extension>
|
||||||
|
</xs:simpleContent>
|
||||||
</xs:complexType>
|
</xs:complexType>
|
||||||
</xs:element>
|
</xs:element>
|
||||||
|
|
||||||
|
<xs:simpleType name='empty'>
|
||||||
|
<xs:restriction base='xs:string'>
|
||||||
|
<xs:enumeration value=''/>
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
</xs:schema>
|
||||||
|
|
||||||
]]></code>
|
]]></code>
|
||||||
</section2>
|
</section2>
|
||||||
</section1>
|
</section1>
|
||||||
|
Loading…
Reference in New Issue
Block a user