Add HTTP Binding support (BOSH / XEP-0124)

Description

Add support for Smack to connect to XMPP servers via HTTP binding.
XEP: http://xmpp.org/extensions/xep-0124.html

Environment

None

Activity

Show:
Mike Cumings
November 19, 2012, 4:07 AM

No news, sorry. I no longer have a need for this functionality and still have a noticeable lack of time for personal projects. The code for the JBOSH library can be found at:

http://kenai.com/projects/jbosh

or at a fork by another dev who was leveraging this for Android:

https://github.com/zewt/jbosh

If you wnt project administrative or committer rights to the kenai instance, just let me know.

csh
November 26, 2012, 3:26 PM

I tried Guenther's implementation. It seems to work with my Smack 3.2.1 client, but I had to do some minor changes:
In the login method, put the authenticated = true BEFORE you load the roster, otherwise it throws IllegalStateException.

Second, in the getRoster() I added:

as it is done in XMPPConnection, since I have to add a RosterListener to the roster before I login. (otherwise I my Roster didn't load properly (with XMPPConnection)).

Kevin Kocher
January 18, 2013, 9:31 PM

I ran into the SSL version of a configuraion timing out as well, identical to Marjan's code above. I think I debugged the root cause to org.xlightweb.client.HttpClient

He's throwing an IOException being caught at line 130 in com.kenai.jbosh.XLightWebResponse
The detailMeassage is: ssl connection are not supported (use pool sslContext parameter constructor)
Has this already been solved, or is some other workaround in place? I'm new to all of this so I'm not sure what layer in all of this would be the one to try and implement a work around. Any ideas?
Thanks,
-Kevin

Neustradamus
November 2, 2013, 8:33 AM

Any news one year after my comment?

Florian Schmaus
November 5, 2013, 7:57 PM

Ge0rg's patch for needs to be applied to the BOSHConnection, from SMACK-187, too.

Fixed

Assignee

Florian Schmaus

Reporter

MattM

Labels

Expected Effort

None

Ignite Forum URL

None

Components

Fix versions

Affects versions

Priority

Major