Package | Description |
---|---|
rocks.xmpp.extensions.rosterx |
Provides classes for XEP-0144: Roster Item Exchange.
|
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 |
---|---|
AsyncResult<java.lang.Void> |
ContactExchangeManager.suggestContactAddition(Jid jid,
Contact... contacts)
Suggests the addition of one or more contacts to another user.
|
Modifier and Type | Method and Description |
---|---|
Contact |
RosterManager.getContact(Jid jid)
Gets a contact by its JID.
|
Modifier and Type | Method and Description |
---|---|
java.util.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.
|
java.util.Collection<Contact> |
RosterManager.getContacts()
Gets the contacts.
|
java.util.List<Contact> |
RosterEvent.getRemovedContacts()
Gets the removed contacts, i.e. contacts which were on the roster, but now are no longer on the roster.
|
java.util.Collection<Contact> |
RosterManager.getUnaffiliatedContacts()
Gets the contacts, which are not affiliated to any group.
|
java.util.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<java.lang.Void> |
RosterManager.addContact(Contact contact,
boolean requestSubscription,
java.lang.String status)
Adds a contact to the roster and optionally also sends a subscription request to it.
|
AsyncResult<java.lang.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(java.util.Collection<java.lang.String> groups)
Creates an identical contact with only the groups changed.
|
Contact |
Contact.withGroups(java.lang.String... groups)
Creates an identical contact with only the groups changed.
|
Contact |
Contact.withName(java.lang.String name)
Creates an identical contact with only the name changed.
|
Contact |
Contact.withoutGroups()
Creates an identical contact without groups.
|
Contact |
Contact.withoutName()
Creates an identical contact without name.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Contact> |
Roster.getContacts()
Gets the contacts.
|
java.util.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(java.util.Collection<Contact> contacts) |
Roster(java.util.Collection<Contact> contacts,
java.lang.String version) |
Copyright © 2014–2019 XMPP.rocks. All rights reserved.