Smack/core/src/main/java/org/jivesoftware/smack
Florian Schmaus 7bd7b3d24c Improve packet send and result collecting API
Instead of repeating the same pattern, when sending an IQ get/set packet
and collecting the response

PacketFilter filter = new PacketIDFilter(request.getPacketID()),
PacketCollector collector = connection.createPacketCollector(filter);
connection.sendPacket(reg);
IQ result = (IQ)collector.nextResult(SmackConfiguration.getPacketReplyTimeout());
// Stop queuing results
collector.cancel();
if (result == null) {
    throw new XMPPException("No response from server.");
}
else if (result.getType() == IQ.Type.ERROR) {
    throw new XMPPException(result.getError());
}

the API got redesigned, so that the above code block can be replaced
with

Packet result = connection.createPacketCollectorAndSend(request).nextResultOrThrow();
2014-02-18 19:39:47 +01:00
..
compression Activate checkstyle and add missing license headers 2014-02-17 20:09:55 +01:00
debugger Normalize newlines to '\n' 2014-02-17 23:58:40 +01:00
filter Normalize newlines to '\n' 2014-02-17 23:58:40 +01:00
initializer Normalize newlines to '\n' 2014-02-17 23:58:40 +01:00
packet Normalize newlines to '\n' 2014-02-17 23:58:40 +01:00
parsing Activate checkstyle and add missing license headers 2014-02-17 20:09:55 +01:00
provider Normalize newlines to '\n' 2014-02-17 23:58:40 +01:00
proxy Activate checkstyle and add missing license headers 2014-02-17 20:09:55 +01:00
sasl Normalize newlines to '\n' 2014-02-17 23:58:40 +01:00
util Improve packet send and result collecting API 2014-02-18 19:39:47 +01:00
AbstractConnectionListener.java Normalize newlines to '\n' 2014-02-17 23:58:40 +01:00
AccountManager.java Improve packet send and result collecting API 2014-02-18 19:39:47 +01:00
Chat.java Normalize newlines to '\n' 2014-02-17 23:58:40 +01:00
ChatManager.java Activate checkstyle and add missing license headers 2014-02-17 20:09:55 +01:00
ChatManagerListener.java Activate checkstyle and add missing license headers 2014-02-17 20:09:55 +01:00
Connection.java Improve packet send and result collecting API 2014-02-18 19:39:47 +01:00
ConnectionConfiguration.java Activate checkstyle and add missing license headers 2014-02-17 20:09:55 +01:00
ConnectionCreationListener.java Activate checkstyle and add missing license headers 2014-02-17 20:09:55 +01:00
ConnectionListener.java Normalize newlines to '\n' 2014-02-17 23:58:40 +01:00
DefaultRosterStore.java Activate checkstyle and add missing license headers 2014-02-17 20:09:55 +01:00
MessageListener.java Activate checkstyle and add missing license headers 2014-02-17 20:09:55 +01:00
NonSASLAuthentication.java Improve packet send and result collecting API 2014-02-18 19:39:47 +01:00
OpenTrustManager.java Normalize newlines to '\n' 2014-02-17 23:58:40 +01:00
PacketCollector.java Improve packet send and result collecting API 2014-02-18 19:39:47 +01:00
PacketInterceptor.java Normalize newlines to '\n' 2014-02-17 23:58:40 +01:00
PacketListener.java Activate checkstyle and add missing license headers 2014-02-17 20:09:55 +01:00
PacketReader.java Improve packet send and result collecting API 2014-02-18 19:39:47 +01:00
PacketWriter.java Activate checkstyle and add missing license headers 2014-02-17 20:09:55 +01:00
ReconnectionManager.java Normalize newlines to '\n' 2014-02-17 23:58:40 +01:00
Roster.java Improve packet send and result collecting API 2014-02-18 19:39:47 +01:00
RosterEntry.java Normalize newlines to '\n' 2014-02-17 23:58:40 +01:00
RosterGroup.java Improve packet send and result collecting API 2014-02-18 19:39:47 +01:00
RosterListener.java Normalize newlines to '\n' 2014-02-17 23:58:40 +01:00
RosterStore.java Activate checkstyle and add missing license headers 2014-02-17 20:09:55 +01:00
SASLAuthentication.java Improve packet send and result collecting API 2014-02-18 19:39:47 +01:00
SmackConfiguration.java Improve packet send and result collecting API 2014-02-18 19:39:47 +01:00
SmackError.java Normalize newlines to '\n' 2014-02-17 23:58:40 +01:00
UserAuthentication.java Normalize newlines to '\n' 2014-02-17 23:58:40 +01:00
XMPPConnection.java Improve packet send and result collecting API 2014-02-18 19:39:47 +01:00
XMPPException.java Normalize newlines to '\n' 2014-02-17 23:58:40 +01:00
package.html Migrate from Ant to Gradle (SMACK-265) 2014-02-14 18:46:33 +01:00