cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <>
Subject Re: Getting the HTTP server off the bus
Date Thu, 12 Jul 2007 02:34:51 GMT
Hi Benson,

All the Jetty related stuff of CXF are in the 
cxf-rt-transports-http-jetty module.
You can get the serverEngine which wraps the Jetty instance from the 

You can use the below codes to get the serverEngine.

        Bus bus =  BusFactory.getDefaultBus();
        DestinationFactoryManager dfm = 
        JettyHttpTransportFactory df = (JettyHttpTransportFactory) 
       ServerEngine engine= df.getEngine();
The you just need to extends JettyHTTPHandler to deal with the static 
content directory, and add it into the engine by call addServant(URL 
url, JettyHTTPHandler handler).
You can find the detail information about the ServerEngine and 
JettyHTTPHandler from this directory

Enjoy hacking the code !


Benson Margulies wrote:
> Could someone reveal how to ask the default bus for the running Jetty
> instance? I want to add a static content directory for it to handle.

View raw message