| Package | Description |
|---|---|
| rocks.xmpp.core.roster |
Provides classes for roster management.
|
| rocks.xmpp.core.sasl |
Provides classes for SASL Negotiation (authentication).
|
| rocks.xmpp.core.session |
Provides classes related to an XMPP session.
|
| rocks.xmpp.core.stanza |
Provides classes for XML stanza management (message, presence, IQ).
|
| rocks.xmpp.core.stream |
Provides classes for XML Streams, especially Stream Negotiation.
|
| rocks.xmpp.extensions.disco |
Provides classes for XEP-0030: Service Discovery (#info).
|
| rocks.xmpp.extensions.httpbind |
Provides classes for XEP-0124: Bidirectional-streams Over Synchronous HTTP (BOSH) and XEP-0206: XMPP Over BOSH.
|
| rocks.xmpp.extensions.privatedata |
Provides classes for XEP-0049: Private XML Storage.
|
| Modifier and Type | Method and Description |
|---|---|
void |
RosterManager.addContact(Contact contact,
boolean requestSubscription,
String status)
Adds a contact to the roster and optionally also sends a subscription request to it.
|
void |
RosterManager.removeContact(Jid jid)
Removes a contact from the roster.
|
void |
RosterManager.removeContactGroup(ContactGroup contactGroup)
Removes a contact group.
|
void |
RosterManager.renameContactGroup(ContactGroup contactGroup,
String name)
Renames a contact group.
|
Roster |
RosterManager.requestRoster()
Requests the roster from the server.
|
void |
RosterManager.storeGroupDelimiter(String groupDelimiter)
Stores the roster group delimiter in the private storage and afterwards sets it.
|
void |
RosterManager.updateContact(Contact contact)
Updates a contact in the roster.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AuthenticationException
An exception thrown during the login process, if SASL negotiation with the XMPP server fails.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ConnectionException
Indicates a failure while connecting to the server.
|
class |
NoResponseException
This exception is thrown, when no response has been received from an XMPP entity.
|
| Modifier and Type | Method and Description |
|---|---|
void |
XmppSession.close()
Explicitly closes the session and performs a clean up of all listeners.
|
void |
XmppSession.connect()
Connects to the XMPP server.
|
void |
XmppSession.connect(Jid from)
Connects to the XMPP server.
|
boolean |
XmppSession.handleElement(Object element)
Handles an XMPP element.
|
void |
XmppSession.login(String authorizationId,
CallbackHandler callbackHandler,
String resource)
Authenticates against the server with a custom callback handler and binds a resource.
|
void |
XmppSession.login(String user,
String password)
Authenticates against the server and binds a random resource (assigned by the server).
|
void |
XmppSession.login(String user,
String password,
String resource)
Authenticates against the server with username/password credential and binds a resource.
|
void |
XmppSession.login(String authorizationId,
String user,
String password,
String resource)
Authenticates against the server with an authorization id and username/password credential and binds a resource.
|
void |
XmppSession.loginAnonymously()
Logs in anonymously and binds a resource.
|
IQ |
XmppSession.query(IQ iq)
Sends an
<iq/> stanza and waits for the response. |
IQ |
XmppSession.query(IQ iq,
long timeout)
Sends an
<iq/> stanza and waits for the response. |
void |
XmppSession.reconnect()
Deprecated.
Use
XmppSession.connect() which automatically performs a connect+login, if previously logged in. |
Message |
XmppSession.sendAndAwaitMessage(ClientStreamElement stanza,
StanzaFilter<Message> filter)
Sends a stanza and then waits for a message stanza to arrive.
|
Presence |
XmppSession.sendAndAwaitPresence(ClientStreamElement stanza,
StanzaFilter<Presence> filter)
Sends a stanza and then waits for a presence stanza to arrive.
|
| Modifier and Type | Class and Description |
|---|---|
class |
StanzaException
A stanza exception represents a stanza error.
|
| Modifier and Type | Class and Description |
|---|---|
class |
StreamErrorException
Represents a stream error.
|
class |
StreamNegotiationException
An exception which indicates a failure during stream negotiation, e.g. if TLS or SASL negotiation or compression or resource binding fails.
|
| Modifier and Type | Method and Description |
|---|---|
InfoNode |
ServiceDiscoveryManager.discoverInformation(Jid jid)
Discovers information about another XMPP entity.
|
InfoNode |
ServiceDiscoveryManager.discoverInformation(Jid jid,
String node)
Discovers information about another XMPP entity targeted at a specific node.
|
ItemNode |
ServiceDiscoveryManager.discoverItems(Jid jid)
Discovers item associated with another XMPP entity.
|
ItemNode |
ServiceDiscoveryManager.discoverItems(Jid jid,
ResultSetManagement resultSet)
Discovers item associated with another XMPP entity.
|
ItemNode |
ServiceDiscoveryManager.discoverItems(Jid jid,
String node)
Discovers item associated with another XMPP entity.
|
ItemNode |
ServiceDiscoveryManager.discoverItems(Jid jid,
String node,
ResultSetManagement resultSetManagement)
Discovers item associated with another XMPP entity.
|
Collection<Item> |
ServiceDiscoveryManager.discoverServices(String feature)
Discovers a service on the connected server by its feature namespace.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BoshException
A BOSH exception is thrown when the BOSH connection manager returned an error condition or the HTTP request responded with an HTTP error code.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
PrivateDataManager.getData(Class<T> type)
Gets private data, which is stored on the server.
|
void |
PrivateDataManager.storeData(Object privateData)
Stores private data.
|
Copyright © 2014–2015 XMPP.rocks. All rights reserved.