| Modifier and Type | Class and Description |
|---|---|
static class |
RosterPacket.Item
A roster item, which consists of a JID, their name, the type of subscription, and
the groups the roster item belongs to.
|
static class |
RosterPacket.ItemStatus
The subscription status of a roster item.
|
static class |
RosterPacket.ItemType |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ELEMENT |
static java.lang.String |
NAMESPACE |
QUERY_ELEMENTDEFAULT_LANGUAGE, ITEM, language, TEXT| Constructor and Description |
|---|
RosterPacket() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRosterItem(RosterPacket.Item item)
Adds a roster item to the packet.
|
XmlStringBuilder |
getChildElementXML()
Returns the sub-element XML section of the IQ packet, or null if there
isn't one.
|
int |
getRosterItemCount()
Returns the number of roster items in this roster packet.
|
java.util.Collection<RosterPacket.Item> |
getRosterItems()
Returns an unmodifiable collection for the roster items in the packet.
|
java.lang.String |
getVersion() |
void |
setVersion(java.lang.String version) |
createErrorResponse, createResultIQ, getType, setType, toXMLaddCommonAttributes, addExtension, addExtensions, getDefaultLanguage, getError, getExtension, getExtension, getExtensions, getExtensionsXML, getFrom, getLanguage, getPacketID, getTo, hasExtension, hasExtension, removeExtension, removeExtension, setError, setFrom, setLanguage, setPacketID, setTo, toStringpublic static final java.lang.String ELEMENT
public static final java.lang.String NAMESPACE
public void addRosterItem(RosterPacket.Item item)
item - a roster item.public int getRosterItemCount()
public java.util.Collection<RosterPacket.Item> getRosterItems()
public XmlStringBuilder getChildElementXML()
IQExtensions of this class must override this method.
getChildElementXML in class IQpublic java.lang.String getVersion()
public void setVersion(java.lang.String version)