[jdev] Question on XMPP URIs?
Cedric Hyppolite
cedric.hyppolite at free.fr
Fri Dec 15 05:29:27 CST 2006
Hi,
This page from the Java doc gives an short non java related
introduction on URI
http://java.sun.com/j2se/1.4.2/docs/api/index.html
-Quote-
A hierarchical URI is subject to further parsing according to the
syntax
[scheme:][//authority][path][?query][#fragment]
where the characters :, /, ?, and # stand for themselves. The scheme-
specific part of a hierarchical URI consists of the characters
between the scheme and fragment components.
The authority component of a hierarchical URI is, if specified,
either server-based or registry-based. A server-based authority
parses according to the familiar syntax
[user-info@]host[:port]
-End quote-
The RFC for URI is:
http://www.ietf.org/rfc/rfc2396.txt
Cheers,
Cedric
Le 15 déc. 06 à 12:08, Ishan De Silva a écrit :
> Hi,
>
> Generally a URI is of the form "scheme://authority/path". For
> example http://www.example.com/index.html
>
> A JID is of the form node at domain/resource. If we have a JID
> guest at example.com/Home, according to RFC 4622, the XMPP URI take
> the form xmpp://guest@example.com/Home.
>
> Is there a way that we can map an XMPP URI to the general URI
> format where we don't have the "node@" component? I mean can we
> have xmpp://example.com/node/Home?
>
> Which part of an XMPP URI is analogous to the "path" of a generic
> URI? Is it both "node" and "resource" or "resource" only?
>
>
> Thanks,
> Ishan.
>
More information about the JDev
mailing list