| Package | Description |
|---|---|
| rocks.xmpp.im.roster |
Provides classes for roster management.
|
| rocks.xmpp.im.roster.model |
Provides XML schema implementations of the Roster Namespace.
|
| Modifier and Type | Method and Description |
|---|---|
Contact |
RosterManager.getContact(Jid jid)
Gets a contact by its JID.
|
| Modifier and Type | Method and Description |
|---|---|
List<Contact> |
RosterEvent.getAddedContacts()
Gets the added contacts, which have been added since the last roster push or which have been initially set by the first roster result.
|
Collection<Contact> |
RosterManager.getContacts()
Gets the contacts.
|
List<Contact> |
RosterEvent.getRemovedContacts()
Gets the removed contacts, i.e. contacts which were on the roster, but now are no longer on the roster.
|
Collection<Contact> |
RosterManager.getUnaffiliatedContacts()
Gets the contacts, which are not affiliated to any group.
|
List<Contact> |
RosterEvent.getUpdatedContacts()
Gets the updated contacts, i.e. if an existing contact has changed its name, groups or subscription state.
|
| Modifier and Type | Method and Description |
|---|---|
AsyncResult<Void> |
RosterManager.addContact(Contact contact,
boolean requestSubscription,
String status)
Adds a contact to the roster and optionally also sends a subscription request to it.
|
AsyncResult<Void> |
RosterManager.updateContact(Contact contact)
Updates a contact in the roster.
|
| Modifier and Type | Method and Description |
|---|---|
static Contact |
Contact.removeContact(Jid jid)
Creates a new contact to send to the server for removal.
|
Contact |
Contact.withGroups(Collection<String> groups)
Creates an identical contact with only the groups changed.
|
Contact |
Contact.withGroups(String... groups)
Creates an identical contact with only the groups changed.
|
Contact |
Contact.withoutGroups()
Creates an identical contact without groups.
|
| Modifier and Type | Method and Description |
|---|---|
List<Contact> |
Roster.getContacts()
Gets the contacts.
|
Collection<Contact> |
ContactGroup.getContacts()
Gets the contacts in this group.
|
| Modifier and Type | Method and Description |
|---|---|
int |
Contact.compareTo(Contact o)
Compares two contacts with each other by first comparing their names, then their subscription states and eventually their pending states.
|
| Constructor and Description |
|---|
Roster(Contact... contacts) |
| Constructor and Description |
|---|
Roster(Collection<Contact> contacts) |
Roster(Collection<Contact> contacts,
String version) |
Copyright © 2014–2016 XMPP.rocks. All rights reserved.