Search in sources :

Example 1 with NioMessageBodyWriter

use of org.apache.cxf.jaxrs.nio.NioMessageBodyWriter in project cxf by apache.

the class ServerProviderFactory method createInstance.

public static ServerProviderFactory createInstance(Bus bus) {
    if (bus == null) {
        bus = BusFactory.getThreadDefaultBus();
    }
    ServerProviderFactory factory = new ServerProviderFactory(bus);
    ProviderFactory.initFactory(factory);
    factory.setProviders(false, false, new WebApplicationExceptionMapper(), new NioMessageBodyWriter());
    factory.setBusProviders();
    return factory;
}
Also used : WebApplicationExceptionMapper(org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper) NioMessageBodyWriter(org.apache.cxf.jaxrs.nio.NioMessageBodyWriter)

Aggregations

WebApplicationExceptionMapper (org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper)1 NioMessageBodyWriter (org.apache.cxf.jaxrs.nio.NioMessageBodyWriter)1