[JDEV] About the protocol

Peter Saint-Andre stpeter at jabber.org
Tue Jan 15 11:50:37 CST 2002


> I'm implementing a Jabber client over Java, then I fault into two
> problems
> 
> 	1- How block a user like MSN Messenger.

Blocking communications from specific JIDs is usually done client-side.
There is no Jabber protocol for this.

> 	2- How define a name to show in the roster of each buddy that
> see my presence.

When you add a roster item, you can include a 'name' attribute, like so:

<iq type="set" id="uniquevalue">
  <query xmlns="jabber:iq:roster">
    <item jid="romeo at montague.net" 
        name="Romeo" 
        subscription="none" 
        ask="subscribe">
      <group>friends</group>
    </item>
  </query>
</iq>

However, AFAIK there is no way to suggest to your "buddy" what that name
attribute should include.

Peter




More information about the JDev mailing list