[JDEV] Buddy Icon (Avatar) Proposal
Jens Alfke
jens at mac.com
Fri Aug 31 11:46:48 CDT 2001
On Thursday, August 30, 2001, at 05:57 PM, Julian Missig wrote:
> As for public XML storage, temas confirmed... there are still certain
> very
> important servers which don't support public XML... these being the same
> servers which don't support jabber:iq:browse.
How about we support both, in a backwards-compatible manner:
The client who provides the icon:
(1) Tries to store it on the server using public-XML with a namespace
like e.g. 'jaber:iq:avatar' <sic>*.
(2) Also responds to 'jaber:iq:avatar' <sic> requests from other clients
by sending the same data, in case the server didn't handle the public
XML.
The client who wants to receive the icon simply makes an IQ 'get' query
with the public-XML namespace, e.g. 'jaber:iq:avatar' <sic>.
This works because, as I understand it, if the server supports public
XML it will return the data stored by the provider, else it will route
the IQ query directly to the provider, who will handle it as described
in (2) above.
This adds minimal complexity to the implementation and improves
performance if the server supports public XML, while still working with
older servers that don't.
--Jens
*the reason for the misspelled 'jaber' is of course because public-XML
namespaces cannot begin with 'jabber' (a questionable design, but one we
have to live with.)
More information about the JDev
mailing list