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;
}
Aggregations