How can i get the full jid ? x@y.org/work

hi,

i´m using the following sourcecode to get all roster entrys. i can receive the jid but not the full jid (admin@jabber.org/work)

i need a full jid for file transfer !


private Collection rosterEntry;

Roster roster = xmppConnection.getRoster();

rosterEntry = roster.getEntries();

for(int i=0; i<rosterEntry.size(); i++) {

System.out.println(rosterEntry.toString());

}


how can i get the full jid ?

thanks

aaron

org.jivesoftware.smack.Roster.getPresences(String user)

-> org.jivesoftware.smack.packet.Presence.getFrom()