mirror of
https://github.com/moparisthebest/xeps
synced 2024-12-22 07:38:52 -05:00
0.2
git-svn-id: file:///home/ksmith/gitmigration/svn/xmpp/trunk@2300 4b5297f7-1745-476d-ba37-a9c6900126ab
This commit is contained in:
parent
155e70810f
commit
a203d092af
41
xep-0224.xml
41
xep-0224.xml
@ -20,13 +20,19 @@
|
|||||||
</dependencies>
|
</dependencies>
|
||||||
<supersedes/>
|
<supersedes/>
|
||||||
<supersededby/>
|
<supersededby/>
|
||||||
<shortname>NOT YET ASSIGNED</shortname>
|
<shortname>attention</shortname>
|
||||||
<author>
|
<author>
|
||||||
<firstname>Andreas</firstname>
|
<firstname>Andreas</firstname>
|
||||||
<surname>Monitzer</surname>
|
<surname>Monitzer</surname>
|
||||||
<email>andy@monitzer.com</email>
|
<email>andy@monitzer.com</email>
|
||||||
<jid>andy@monitzer.com</jid>
|
<jid>andy@monitzer.com</jid>
|
||||||
</author>
|
</author>
|
||||||
|
<revision>
|
||||||
|
<version>0.2</version>
|
||||||
|
<date>2008-10-01</date>
|
||||||
|
<initials>psa</initials>
|
||||||
|
<remark><p>Modified namespace to incorporate namespace versioning.</p></remark>
|
||||||
|
</revision>
|
||||||
<revision>
|
<revision>
|
||||||
<version>0.1</version>
|
<version>0.1</version>
|
||||||
<date>2007-08-08</date>
|
<date>2007-08-08</date>
|
||||||
@ -41,7 +47,7 @@
|
|||||||
</revision>
|
</revision>
|
||||||
</header>
|
</header>
|
||||||
<section1 topic='Introduction' anchor='intro'>
|
<section1 topic='Introduction' anchor='intro'>
|
||||||
<p>Even though a client might be available (as stated in the most recent presence stanza) the user this client belongs to might not have the focus on the client currently. &xep0132; defines a method for a physical test of user presence. Since this requires special hardware that can not be assumed to be available, this XEP defines a software-only implementation where no direct feedback is expected. This is known as 'nudge' or 'buzz' in some legacy IM protocols.</p>
|
<p>Even though a client might be available (as stated in the most recent presence stanza), the user this client belongs to might not be focused on the client currently. &xep0132; defines a method for a physical test of user presence. Since this requires special hardware that can not be assumed to be available, this XEP defines a software-only implementation where no direct feedback is expected. This is known as 'nudge' or 'buzz' in some legacy IM protocols.</p>
|
||||||
<p>It was discussed whether this should be part of &xep0085;. However, the semantics are inherently different, since it describes the sender's state, not a request to change the receiver's. Thus, a separate extension is desirable.</p>
|
<p>It was discussed whether this should be part of &xep0085;. However, the semantics are inherently different, since it describes the sender's state, not a request to change the receiver's. Thus, a separate extension is desirable.</p>
|
||||||
</section1>
|
</section1>
|
||||||
<section1 topic='Requirements' anchor='reqs'>
|
<section1 topic='Requirements' anchor='reqs'>
|
||||||
@ -54,10 +60,10 @@
|
|||||||
<body>All right, then, Herbie, give! We're waiting.</body>
|
<body>All right, then, Herbie, give! We're waiting.</body>
|
||||||
</message>
|
</message>
|
||||||
]]></example>
|
]]></example>
|
||||||
<p>When no reply is received, the sending user might want to grab the other's attention. This is done by sending a message that includes an <attention/> element qualified by the 'http://www.xmpp.org/extensions/xep-0224.html#ns' namespace &NSNOTE;. Note: The message may or may not include a &BODY; element.</p>
|
<p>When no reply is received, the sending user might want to grab the other's attention. This is done by sending a message that includes an <attention/> element qualified by the 'urn:xmpp:attention:0' namespace &VNOTE;. Note: The message may or may not include a &BODY; element.</p>
|
||||||
<example caption="User tries to capture the other's attention"><![CDATA[
|
<example caption="User tries to capture the other's attention"><![CDATA[
|
||||||
<message from='calvin@usrobots.lit/lab' to='herbie@usrobots.lit/home' type='headline'>
|
<message from='calvin@usrobots.lit/lab' to='herbie@usrobots.lit/home' type='headline'>
|
||||||
<attention xmlns='http://www.xmpp.org/extensions/xep-0224.html#ns'/>
|
<attention xmlns='urn:xmpp:attention:0'/>
|
||||||
<body>Why don't you answer, Herbie?</body>
|
<body>Why don't you answer, Herbie?</body>
|
||||||
</message>
|
</message>
|
||||||
]]></example>
|
]]></example>
|
||||||
@ -71,7 +77,7 @@
|
|||||||
<section1 topic='Business Rules' anchor='rules'>
|
<section1 topic='Business Rules' anchor='rules'>
|
||||||
<p>The following rules apply to generating and processing of the attention extension.
|
<p>The following rules apply to generating and processing of the attention extension.
|
||||||
<ol>
|
<ol>
|
||||||
<li>Before sending an attention message stanza, the client MUST confirm support for it in the other client as described under <link url='#disco'>Determining Support</link>.</li>
|
<li>Before sending an attention message stanza, the client SHOULD confirm support for it in the other client as described under <link url='#disco'>Determining Support</link>.</li>
|
||||||
<li>The message stanza containing the attention extension MAY contain a body and/or other extensions, which is to be displayed along with executing the attention event.</li>
|
<li>The message stanza containing the attention extension MAY contain a body and/or other extensions, which is to be displayed along with executing the attention event.</li>
|
||||||
<li>In message stanzas containing either &xep0203; data, attention extensions MUST be ignored, since this is an instant event which should not be replayed after a delay.</li>
|
<li>In message stanzas containing either &xep0203; data, attention extensions MUST be ignored, since this is an instant event which should not be replayed after a delay.</li>
|
||||||
<li>Messages containing an attention extension SHOULD use the headline message type to avoid offline storage.</li>
|
<li>Messages containing an attention extension SHOULD use the headline message type to avoid offline storage.</li>
|
||||||
@ -80,7 +86,7 @@
|
|||||||
</p>
|
</p>
|
||||||
</section1>
|
</section1>
|
||||||
<section1 topic='Determining Support' anchor='disco'>
|
<section1 topic='Determining Support' anchor='disco'>
|
||||||
<p>If an entity supports receiving the attention extension, it MUST advertise that fact in its responses to &xep0030; information ("disco#info") requests by returning a feature of "http://www.xmpp.org/extensions/xep-0224.html#ns":</p>
|
<p>If an entity supports receiving the attention extension, it MUST advertise that fact in its responses to &xep0030; information ("disco#info") requests by returning a feature of "urn:xmpp:attention:0":</p>
|
||||||
<example caption='A disco#info query'><![CDATA[
|
<example caption='A disco#info query'><![CDATA[
|
||||||
<iq type='get'
|
<iq type='get'
|
||||||
from='calvin@usrobots.lit/lab'
|
from='calvin@usrobots.lit/lab'
|
||||||
@ -96,12 +102,12 @@
|
|||||||
id='disco1'>
|
id='disco1'>
|
||||||
<query xmlns='http://jabber.org/protocol/disco#info'>
|
<query xmlns='http://jabber.org/protocol/disco#info'>
|
||||||
...
|
...
|
||||||
<feature var='http://www.xmpp.org/extensions/xep-0224.html#ns'/>
|
<feature var='urn:xmpp:attention:0'/>
|
||||||
...
|
...
|
||||||
</query>
|
</query>
|
||||||
</iq>
|
</iq>
|
||||||
]]></example>
|
]]></example>
|
||||||
<p>In addition, support for receiving attention extensions in message stanzas can be determined through the dynamic profile of Service Discovery defined in &xep0115;.</p>
|
<p>In order for an application to determine whether an entity supports this protocol, where possible it SHOULD use the dynamic, presence-based profile of service discovery defined in &xep0115;. However, if an application has not received entity capabilities information from an entity, it SHOULD use explicit service discovery instead.</p>
|
||||||
</section1>
|
</section1>
|
||||||
<section1 topic='Implementation Notes' anchor='impl'>
|
<section1 topic='Implementation Notes' anchor='impl'>
|
||||||
<p>The implementation of the alert is up to the developer. Possible behavior is:</p>
|
<p>The implementation of the alert is up to the developer. Possible behavior is:</p>
|
||||||
@ -112,19 +118,26 @@
|
|||||||
<li>Enabling external hardware such as flashlights.</li>
|
<li>Enabling external hardware such as flashlights.</li>
|
||||||
<li>Let it be user customizable.</li>
|
<li>Let it be user customizable.</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>However, since some users might not want this feature to disturb them, a client SHOULD enable the user to disable support. When the feature is disabled, it MUST NOT be advertised in disco#info.</p>
|
<p>However, since some users might not want this feature to disturb them, a client SHOULD allow the user to disable support. When the feature is disabled, it MUST NOT be advertised in disco#info.</p>
|
||||||
<p>Rate-limiting might be desirable in some implementations.</p>
|
<p>Rate-limiting might be desirable in some implementations.</p>
|
||||||
<p>Formal feedback in response to the attention request to the requesting user is not specified, and so the request might be silently dropped.</p>
|
<p>Formal feedback in response to the attention request to the requesting user is not specified, and so the request might be silently dropped.</p>
|
||||||
</section1>
|
</section1>
|
||||||
<section1 topic='Security Considerations' anchor='security'>
|
<section1 topic='Security Considerations' anchor='security'>
|
||||||
<p>It is recommended that only message stanzas containing attention extensions from peers on the user's roster are accepted. Finer grained control might be implemented.</p>
|
<p>It is RECOMMENDED that only message stanzas containing attention extensions from peers on the user's roster are accepted. Finer grained control might be implemented.</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='ns'>
|
<section2 topic='Protocol Namespaces' anchor='registrar-ns'>
|
||||||
<p>Until this specification advances to a status of Draft, its associated namespace shall be "http://www.xmpp.org/extensions/xep-0224.html#ns"; upon advancement of this specification, the ®ISTRAR; shall issue a permanent namespace in accordance with the process defined in Section 4 of &xep0053;.</p>
|
<p>This specification defines the following XML namespace:</p>
|
||||||
|
<ul>
|
||||||
|
<li>urn:xmpp:attention:0</li>
|
||||||
|
</ul>
|
||||||
|
<p>Upon advancement of this specification from a status of Experimental to a status of Draft, the ®ISTRAR; shall add the foregoing namespace to the registry located at &NAMESPACES;, as described in Section 4 of &xep0053;.</p>
|
||||||
|
</section2>
|
||||||
|
<section2 topic='Protocol Versioning' anchor='registrar-versioning'>
|
||||||
|
<p>If the protocol defined in this specification undergoes a major revision that is not fully backward-compatible with an older version, or that contains significant new features, the XMPP Registrar shall increment the protocol version number found at the end of the XML namespaces defined herein, as described in Section 4 of <cite>XEP-0053</cite>.</p>
|
||||||
</section2>
|
</section2>
|
||||||
</section1>
|
</section1>
|
||||||
<section1 topic='XML Schema' anchor='schema'>
|
<section1 topic='XML Schema' anchor='schema'>
|
||||||
@ -133,8 +146,8 @@
|
|||||||
|
|
||||||
<xs:schema
|
<xs:schema
|
||||||
xmlns:xs='http://www.w3.org/2001/XMLSchema'
|
xmlns:xs='http://www.w3.org/2001/XMLSchema'
|
||||||
targetNamespace='http://www.xmpp.org/extensions/xep-0224.html#ns'
|
targetNamespace='urn:xmpp:attention:0'
|
||||||
xmlns='http://www.xmpp.org/extensions/xep-0224.html#ns'
|
xmlns='urn:xmpp:attention:0'
|
||||||
elementFormDefault='qualified'>
|
elementFormDefault='qualified'>
|
||||||
|
|
||||||
<xs:element name='attention' type='empty'/>
|
<xs:element name='attention' type='empty'/>
|
||||||
|
Loading…
Reference in New Issue
Block a user