Menu

#6 JID.equalsFriendly(JID)

open
None
5
2001-02-25
2001-02-25
No

It'd be nice to have a JID.equalsFriendly(JID) method
that compares the username and server but not the resource.

Discussion

  • David Waite

    David Waite - 2001-02-25

    Logged In: YES
    user_id=9752

    Interesting. A different name (equalsUserHost) probably
    would be in order - the 'Friendly' name is a throwback to
    older transports which stored all login information in the
    Jabber ID of the service
    (aim.jabber.org/registered?username=whoever&password=whatever
    would have a 'friendly name' of aim.jabber.org/registered)

     
  • David Waite

    David Waite - 2001-02-25
    • assigned_to: nobody --> mass
     
  • Mark Paschal

    Mark Paschal - 2001-02-28

    Logged In: YES
    user_id=153505

    I would use "equalsUser" since markpasc@jabber.org and
    markpasc@jabber.com are different users (with the same
    username). And yeah, I took 'Friendly' from the 15 May 2000
    "Jabber Identifiers" document.

     

Log in to post a comment.