• Guus der Kinderen's avatar
    OF-1326: Improve sharing of the BOSH context · a0049776
    Guus der Kinderen authored
    Intead of using a parent context, a collection of Jetty handlers can be used to dynamically add/remove functionality to the BOSH context.
    
    This commit replaces the parent context instance with a ordered list of handlers, which will attempt to process a request by:
    
    1. Checking if this is a BOSH request
    2. Checking if this is a request for BOSH metadata
    3. Check if an extension was provided that can handle the request
    4. Try to serve static content as a last resort.
    
    In step 3, a collection of handlers is used, that can be modified at runtime. This allows plugins to register/remove handlers.
    
    The entire collection of handlers (1 to 4) is maintained with a lifecycle that's different from the embedded Jetty server that uses them. This
    allows the collection to survive a server reconfiguration, as well as act independent of the 'enabled' state of the BOSH service.
    a0049776
Name
Last commit
Last update
build Loading commit data...
dbutil Loading commit data...
documentation Loading commit data...
i18n Loading commit data...
plugins Loading commit data...
src Loading commit data...
starter Loading commit data...
webadmin Loading commit data...
webadmintld Loading commit data...
xmppserver Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
LICENSE.txt Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
pom.xml Loading commit data...