1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-11-21 16:55:07 -05:00

XEP-0124 v1.11rc4: Corrected examples (thanks to Philipp Hancke).

This commit is contained in:
Matthew A. Miller 2014-03-20 09:36:19 -06:00
parent 77f7e96718
commit 7e8c1da5a0

View File

@ -32,6 +32,12 @@
&metajack;
&lance;
&winfried;
<revision>
<version>1.11rc4</version>
<date>2014-02-10</date>
<initials>editor (mam)</initials>
<remark><p>Corrected examples (thanks to Philipp Hancke).</p></remark>
</revision>
<revision>
<version>1.11rc3</version>
<date>2014-02-10</date>
@ -338,7 +344,7 @@ first socket second socket
Host: httpcm.example.com
Accept-Encoding: gzip, deflate
Content-Type: text/xml; charset=utf-8
Content-Length: 104
Content-Length: 225
<body content='text/xml; charset=utf-8'
from='user@example.com'
@ -376,7 +382,7 @@ Content-Length: 104
<example caption="Session creation response">
<![CDATA[HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: 128
Content-Length: 243
<body wait='60'
inactivity='30'
@ -396,7 +402,7 @@ Content-Length: 128
<example caption="Subsequent response with 'from' attribute">
<![CDATA[HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: 128
Content-Length: 71
<body from='example.com'
xmlns='http://jabber.org/protocol/httpbind'/>]]></example>
@ -409,7 +415,7 @@ Content-Length: 128
Host: httpcm.example.com
Accept-Encoding: gzip, deflate
Content-Type: text/xml; charset=utf-8
Content-Length: 188
Content-Length: 279
<body rid='1249243562'
sid='SomeSID'
@ -430,14 +436,14 @@ Content-Length: 188
<example caption="Empty response">
<![CDATA[HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: 64
Content-Length: 52
<body xmlns='http://jabber.org/protocol/httpbind'/>]]></example>
<p>If the connection manager has received one or more payloads from the application server for delivery to the client, then it SHOULD return the payloads in the body of its response as soon as possible after receiving them from the server. The example below includes payloads qualified by different namespaces:</p>
<example caption="Response with queued stanza">
<![CDATA[HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: 185
Content-Length: 917
<body xmlns='http://jabber.org/protocol/httpbind'
xmlns:json='http://json.org/'>
@ -482,7 +488,7 @@ Content-Length: 185
Host: httpcm.example.com
Accept-Encoding: gzip, deflate
Content-Type: text/xml; charset=utf-8
Content-Length: 88
Content-Length: 83
<body rid='1249243563'
sid='SomeSID'
@ -495,7 +501,7 @@ Content-Length: 88
<example caption="Response with request acknowledgement">
<![CDATA[HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: 64
Content-Length: 69
<body ack='1249243564'
xmlns='http://jabber.org/protocol/httpbind'/>]]></example>
@ -509,7 +515,7 @@ Content-Length: 64
Host: httpcm.example.com
Accept-Encoding: gzip, deflate
Content-Type: text/xml; charset=utf-8
Content-Length: 88
Content-Length: 100
<body rid='1249243566'
sid='SomeSID'
@ -519,7 +525,7 @@ Content-Length: 88
<example caption="Response with report">
<![CDATA[HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: 64
Content-Length: 83
<body report='1249243565'
time='852'
@ -538,7 +544,7 @@ Content-Length: 64
Host: httpcm.example.com
Accept-Encoding: gzip, deflate
Content-Type: text/xml; charset=utf-8
Content-Length: 98
Content-Length: 94
<body rid='1249243564'
sid='SomeSID'
@ -554,7 +560,7 @@ Content-Length: 98
<example caption="Too many simultaneous requests response">
<![CDATA[HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: 68
Content-Length: 98
<body type='terminate'
condition='policy-violation'
@ -564,7 +570,7 @@ Content-Length: 68
<example caption="Too frequent requests response">
<![CDATA[HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: 68
Content-Length: 98
<body type='terminate'
condition='policy-violation'
@ -578,7 +584,7 @@ Content-Length: 68
<example caption="Too frequent polling response">
<![CDATA[HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: 68
Content-Length: 98
<body type='terminate'
condition='policy-violation'
@ -592,7 +598,7 @@ Content-Length: 68
Host: httpcm.example.com
Accept-Encoding: gzip, deflate
Content-Type: text/xml; charset=utf-8
Content-Length: 153
Content-Length: 158
<body rid='1249243565'
sid='SomeSID'
@ -605,7 +611,7 @@ Content-Length: 153
<example caption="Connection manager acknowledges termination">
<![CDATA[HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: 72
Content-Length: 69
<body type='terminate'
xmlns='http://jabber.org/protocol/httpbind'/>]]></example>
@ -621,7 +627,7 @@ Content-Length: 72
<example caption="Unexpected rid error">
<![CDATA[HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: 68
Content-Length: 96
<body type='terminate'
condition='item-not-found'
@ -635,7 +641,7 @@ Content-Length: 68
<example caption="Response not in buffer error">
<![CDATA[HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: 68
Content-Length: 96
<body type='terminate'
condition='item-not-found'
@ -670,7 +676,7 @@ Content-Length: 68
Host: httpcm.example.com
Accept-Encoding: gzip, deflate
Content-Type: text/xml; charset=utf-8
Content-Length: 104
Content-Length: 203
<body content='text/xml; charset=utf-8'
hold='1'
@ -686,7 +692,7 @@ Content-Length: 104
Host: httpcm.example.com
Accept-Encoding: gzip, deflate
Content-Type: text/xml; charset=utf-8
Content-Length: 88
Content-Length: 130
<body rid='1573741821'
sid='SomeSID'
@ -696,7 +702,7 @@ Content-Length: 88
<example caption="Invalid Key Sequence Error">
<![CDATA[HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: 68
Content-Length: 96
<body type='terminate'
condition='item-not-found'
@ -716,7 +722,7 @@ Content-Length: 68
Host: httpcm.example.com
Accept-Encoding: gzip, deflate
Content-Type: text/xml; charset=utf-8
Content-Length: 188
Content-Length: 277
<body rid='1573741822'
sid='SomeSID'
@ -741,7 +747,7 @@ Content-Length: 188
<example caption="Session creation response with stream name">
<![CDATA[HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: 128
Content-Length: 251
<body wait='60'
inactivity='30'
@ -764,7 +770,7 @@ Content-Length: 128
Host: httpcm.example.com
Accept-Encoding: gzip, deflate
Content-Type: text/xml; charset=utf-8
Content-Length: 104
Content-Length: 144
<body sid='SomeSID'
rid='1573741820'
@ -776,7 +782,7 @@ Content-Length: 104
<example caption="Add stream response">
<![CDATA[HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: 128
Content-Length: 97
<body stream='secondStreamName'
from='example.com'
@ -792,7 +798,7 @@ Content-Length: 128
Host: httpcm.example.com
Accept-Encoding: gzip, deflate
Content-Type: text/xml; charset=utf-8
Content-Length: 188
Content-Length: 207
<body rid='1249243562'
sid='SomeSID'
@ -807,7 +813,7 @@ Content-Length: 188
<example caption="Connection manager responds with a different stream name">
<![CDATA[HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: 185
Content-Length: 197
<body stream='firstStreamName'
xmlns='http://jabber.org/protocol/httpbind'>
@ -824,7 +830,7 @@ Content-Length: 185
Host: httpcm.example.com
Accept-Encoding: gzip, deflate
Content-Type: text/xml; charset=utf-8
Content-Length: 188
Content-Length: 149
<body rid='1249243562'
sid='SomeSID'
@ -841,7 +847,7 @@ Content-Length: 188
Host: httpcm.example.com
Accept-Encoding: gzip, deflate
Content-Type: text/xml; charset=utf-8
Content-Length: 153
Content-Length: 184
<body rid='1249243564'
sid='SomeSID'
@ -857,7 +863,7 @@ Content-Length: 153
<example caption="Fatal stream error">
<![CDATA[HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: 68
Content-Length: 132
<body type='terminate'
condition='remote-connection-failed'
@ -920,7 +926,7 @@ Content-Length: 68
<example caption="Remote connection failed error">
<![CDATA[HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: 68
Content-Length: 106
<body type='terminate'
condition='remote-connection-failed'
@ -989,7 +995,7 @@ Content-Length: 68
<example caption="See other URI error">
<![CDATA[HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: 68
Content-Length: 144
<body condition='see-other-uri'
type='terminate'
@ -1000,7 +1006,7 @@ Content-Length: 68
<example caption="Remote error">
<![CDATA[HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: 68
Content-Length: 526
<body condition='remote-stream-error'
type='terminate'
@ -1028,7 +1034,7 @@ Content-Length: 68
<example caption="Recoverable error">
<![CDATA[HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: 68
Content-Length: 65
<body type='error'
xmlns='http://jabber.org/protocol/httpbind'/>]]></example>