This patch implements a Servlet that acts like a BOSH handler.
The pom.xml is updated to depend on jetty-servlet.
Jetty SSL is implemented and a keystore is provided to test on HTTPS.
Because there are already 2 patches (https://issues.apache.org/jira/browse/VYSPER-204) I cannot make incremental diffs against SVN (only a total patch that will incorporate the previous diffs/patches). So I used the GNU diff command to create a unified diff that is incremental to the other patches. First you have to apply the first patches and then this patch that is only incremental for easy reading. The actual command to create the diff is:
diff -x ".svn" -urN tree1 tree2
And to apply the patch from within the xep0124-xep0206-bosh folder:
patch -p1 < the-patch
It also works in Eclipse from Team -> Apply patch, ("Ignore leading path name segments" should be 1 in the second screen of the wizard)