主权项 |
1. A system to transport HTTP over XMPP, comprising:
a computer readable storage medium, storing executable instructions; and a processor in communication with the computer readable storage medium, the processor when executing the executable instructions:
forms a first two-level URI template to identify web resources accessible by use of HTTP in an XMPP network, wherein a first level is XMPP-formatted and a second level is HTTP-formatted;binds HTTP to XMPP in the first two-level URI template, wherein binding HTTP to XMPP comprises:
binding HTTP GET to an XMPP <iq type=“get”> stanza;binding HTTP PUT, POST and DELETE to an XMPP <iq type=“set”> stanza;binding HTTP response codes 1xx-3xx to an XMPP <iq type=“result”> stanza; andbinding HTTP response codes 4xx-5xx to an XMPP <iq type=“error”> stanza;transmits the first two-level URI template to a destination;receives a second two-level URI template from the destination; anddereferences the second two-level URI template. |