Florian Schmaus
0ed68cc18f
Record built date in version
2014-08-08 16:23:13 +02:00
Florian Schmaus
3bbe9bef71
s/buildDate/builtDate/
2014-08-08 16:23:12 +02:00
Florian Schmaus
c9dd1cdc40
Improved iqVersion code
...
including parsing and the version class.
2014-08-08 16:22:56 +02:00
Vyacheslav Blinov
8274a9f25b
Check if android.jar exists
...
and throw exception if not
2014-08-07 16:56:18 +02:00
Florian Schmaus
92a6d01507
Merge branch '4.0'
...
Also slightly improve OfflineMessageManager.getMessages()
Conflicts:
build.gradle
smack-extensions/src/main/java/org/jivesoftware/smackx/offline/OfflineMessageManager.java
2014-08-07 16:51:03 +02:00
Florian Schmaus
c3f6c51d0e
Add a setting for the used flush mode when compressing data
...
Fixes SMACK-593
2014-08-07 16:18:44 +02:00
Florian Schmaus
4e588f7908
Throw IAE if invalid port number is given for Socks5Proxy
2014-08-05 09:33:20 +02:00
Florian Schmaus
5c2f051c1c
Make Socks5Proxy try other ports if 7777 is already in use
...
by setting the default value to '-7777' (negative values mean that the
next port number will be tried if the current one is in use).
2014-08-05 09:32:13 +02:00
Florian Schmaus
d10ff92d44
Use createPacketCollectorAndSend in FileTransferNegoiator
...
also fixes a potential PacketCollector leak.
2014-08-04 20:04:39 +02:00
Florian Schmaus
70f1c22bb2
Prevent PacketCollector leaking
...
in AbstractXMPPConnection.createPacketCollectorAndSend(IQ) in case there
is a NoResponseException.
2014-08-04 18:15:42 +02:00
Florian Schmaus
6caf2cbdb5
Don't use IQReplyFilter for resource binding
...
as the local username is only available after binding (and legacy
session establishment). This makes Smack compatible again with XMPP
services that use the user's JID as from attribute in the result IQ
after the bind set IQ, e.g. Facebook:
SENT:
<iq id='sqvTK-1' type='set'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>Smack</resource>
</bind>
</iq>
RCV:
<iq from='user.name.1@chat.facebook.com' id='sqvTK-1' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>user.name.1@chat.facebook.com/Smack</jid>
</bind>
</iq>
Fixes SMACK-590
2014-08-04 18:01:05 +02:00
Florian Schmaus
d65d239550
Make getMessages() set up collector *before* sending the request
...
Similar flaw was also fixed in 2c7f1efe80
.
Also ensure that OfflineMessagesManager doesn't leak collector by using
a try/finally block.
Fixes SMACK-592
2014-08-04 12:21:37 +02:00
Florian Schmaus
076c7d0b81
Configure default Hostname Verifiers
2014-08-03 21:15:41 +02:00
Florian Schmaus
a574e1d56d
Verify ConnectionConfiguration parameters
...
also fix javadoc error for StringUtils.isNullOrEmpty()
Fixes SMACK-539
2014-08-01 23:23:11 +02:00
Florian Schmaus
66da4dfa91
Fix Typo: s/isSubscibe/isSubscribe/ in ConfigureForm
...
Fixes SMACK-588
2014-08-01 23:15:46 +02:00
Florian Schmaus
1935039432
Improve documentation (targetCompatibility, XPP3)
2014-08-01 19:19:17 +02:00
Florian Schmaus
89dc3a0e85
Add smack-android and redesign SASL authentication
...
This commit marks an important milestone with the addition of the
smack-android subproject. Smack is now able to run native on Android
without requiring any modifications, which makes the aSmack build
environment obsolete.
It was necessary to redesign the code for SASL authentication to achieve
this. Smack now comes with smack-sasl-provided for SASL implementations
that do not rely on additional APIs like javax for platforms where those
APIs are not available like Android.
2014-08-01 10:34:47 +02:00
Florian Schmaus
0b6069d75f
Fix FormField.Option.toXML() to use correct element
...
Fixes SMACK-589
2014-07-30 21:58:10 +02:00
Florian Schmaus
5a2149718a
Add gitCommit to version resource
2014-07-28 23:35:56 +02:00
Florian Schmaus
34b195397f
Add '--always' to 'git describe'
2014-07-28 16:12:57 +02:00
Florian Schmaus
6bf0678db6
Merge branch '4.0'
...
Conflicts:
build.gradle
smack-core/src/main/java/org/jivesoftware/smack/ConnectionConfiguration.java
smack-tcp/src/main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java
2014-07-28 00:05:02 +02:00
Florian Schmaus
5ead24e416
Smack 4.0.3-SNAPSHOT
2014-07-27 23:59:48 +02:00
Florian Schmaus
a0564f2694
Smack 4.0.2
2014-07-27 23:59:48 +02:00
Florian Schmaus
16ea073f4d
Fix OSGi component definition for smack-resolver-javax
...
The Service Component definition for resolver-javax is in
org.jivesofware.samck and not org.jivesoftware.smack*x*.
SMACK-576
2014-07-27 23:59:47 +02:00
Florian Schmaus
057d00c9de
Add support for HostnameVerifier
...
SMACK-586
Conflicts:
smack-core/src/main/java/org/jivesoftware/smack/ConnectionConfiguration.java
smack-tcp/src/main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java
2014-07-27 23:28:11 +02:00
Georg Lukas
5f67345275
Make XMPPTCPConnection fail without a HostnameVerifier
2014-07-27 23:19:39 +02:00
Florian Schmaus
7b3331dda0
Add API to find services for a given feature
...
It's a common pattern to look for all services hosted under the users
service that provide a given feature. Let's provide an API for that and
use that API in the methods that benefit from it.
2014-07-26 07:14:42 +02:00
Florian Schmaus
6b7fa4a788
Only call SimpleDataFormat once in build.gradle
...
re-use ext.buildDate
2014-07-25 19:48:54 +02:00
Florian Schmaus
3634587933
Support building with Java8
2014-07-25 10:38:27 +02:00
Florian Schmaus
f05e744011
s/ohloh/openhub/ in README.md
2014-07-23 08:29:47 +02:00
Georg Lukas
2a05c3b707
Roster: merge the two registered ConnectionListeners
2014-07-23 08:29:46 +02:00
Florian Schmaus
d35fd16a21
Add support for HostnameVerifier
2014-07-23 08:29:46 +02:00
Florian Schmaus
fe258fe110
Fix XMPPTCPConnection to set 'host' and 'port'
...
Fixes SMACK-585
2014-07-23 08:29:35 +02:00
Florian Schmaus
b117d3a918
Add smack-java7
2014-07-20 14:29:02 +02:00
Florian Schmaus
d06d5b7c69
Merge branch '4.0'
...
Conflicts:
build.gradle
2014-07-20 14:19:59 +02:00
Florian Schmaus
2ca92ef601
Smack 4.0.2-SNAPSHOT
2014-07-20 13:33:50 +02:00
Florian Schmaus
d56252f9fb
Smack 4.0.1
2014-07-20 12:59:01 +02:00
Florian Schmaus
494f7d5b34
Add getDatestamp() to build.gradle
2014-07-20 12:59:01 +02:00
Florian Schmaus
59527d320d
Add SmackAndOsgiInitializer
...
OSGi ServiceComponents need the activate method, make sure it exists for
every SmackInitializer by using this class.
2014-07-20 12:58:50 +02:00
Florian Schmaus
9db5e28fe5
Fix ExperimentalInitializer
2014-07-20 11:08:11 +02:00
Florian Schmaus
97b17e83b4
Move "Message Events (XEP-22)" code to legacy
...
Fixes SMACK-569
2014-07-16 12:01:03 +02:00
Florian Schmaus
49ee058c38
Cleanup carbons, forwarded and a few others API
...
Adopt to common design patterns in Smack:
- getFrom(Packet) in Packetextensions
- INSTANCES.put() in getInstanceFor()
- ELEMENT instead of ELEMENT_NAME
- Use XmlStringBuilder
2014-07-16 11:46:30 +02:00
Florian Schmaus
1ed5c48bcc
Merge branch '4.0'
...
Conflicts:
smack-core/src/main/java/org/jivesoftware/smack/XMPPConnection.java
2014-07-16 10:52:58 +02:00
Florian Schmaus
cea79d1bb8
Use single threaded ExecutorService
...
for PacketListeners. Fixes SMACK-583.
2014-07-16 10:50:35 +02:00
Florian Schmaus
46a54bcd7d
Use jxmpp 0.2.0
...
this also changes jxmpp's group from org.jivesoftware.jxmpp to org.jxmpp
2014-07-15 23:32:19 +02:00
Florian Schmaus
06ab0e32d7
Fix XHTMLText.appendBrTag()
...
It's an empty element and not a closing one.
2014-07-15 23:32:10 +02:00
Florian Schmaus
e6aa2416e4
Improve MUC code
...
Removes a ton of duplicate code, mostly related to MUCItem being
duplicated in MUCOwner and MUCAdmin, but also some other duplicate code.
Make MUC code use XmlStringBuilder.
Add ELEMENT and NAMESPACE constants to the appropriate places. Also add
"static <MUCPacketExtension> getFrom(Packet)" methods.
Make some MUC classes implement Element.
2014-07-14 19:22:02 +02:00
Florian Schmaus
7735a5224c
Merge branch '4.0'
...
Conflicts:
smack-extensions/src/main/java/org/jivesoftware/smackx/filetransfer/FileTransferManager.java
smack-extensions/src/main/java/org/jivesoftware/smackx/filetransfer/FileTransferNegotiator.java
smack-extensions/src/main/java/org/jivesoftware/smackx/pubsub/Node.java
smack-extensions/src/main/java/org/jivesoftware/smackx/pubsub/PubSubManager.java
smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/InBandBytestreamRequestTest.java
smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/InitiationListenerTest.java
smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/socks5/InitiationListenerTest.java
2014-07-14 14:31:09 +02:00
Florian Schmaus
bd0ada480b
Improve DeliveryReceipt code, add javadoc
...
Also make Packet.getExtension() use Generics
2014-07-13 11:39:01 +02:00
Florian Schmaus
c063fb1376
Reply correct error code on XEP-65 Stream rejection
...
this was previously erroneously changed with
197548b548
from 'forbidden' to
'not-acceptable'. We now change it back to 'forbidden'.
Also delete FileTransferNegotiator.rejectStream(StreamInitation) because
it is dead code and add some comments and javadoc.
2014-07-12 13:52:54 +02:00