use of com.sun.jersey.spi.container.servlet.WebComponent in project pentaho-platform by pentaho.
the class JAXRSServlet method init.
@Override
public void init() throws ServletException {
SendEmptyEntityForServicesFlag = Boolean.parseBoolean(PentahoSystem.getSystemSetting("pentaho.xml", "set-empty-entity-rest-services", "true"));
Application app = (Application) getPrivate("app", ServletContainer.class, this);
WebComponent component;
if (app == null) {
component = new InternalWebComponent();
} else {
component = new InternalWebComponent(app);
}
setPrivate("webComponent", ServletContainer.class, this, component, false);
WebServletConfig webConfig = createWebConfig(this);
component.init(webConfig);
}
Aggregations