Search in sources :

Example 1 with WebComponent

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);
}
Also used : WebComponent(com.sun.jersey.spi.container.servlet.WebComponent) ServletContainer(com.sun.jersey.spi.container.servlet.ServletContainer) WebServletConfig(com.sun.jersey.spi.container.servlet.WebServletConfig) WebApplication(com.sun.jersey.spi.container.WebApplication) Application(javax.ws.rs.core.Application)

Aggregations

WebApplication (com.sun.jersey.spi.container.WebApplication)1 ServletContainer (com.sun.jersey.spi.container.servlet.ServletContainer)1 WebComponent (com.sun.jersey.spi.container.servlet.WebComponent)1 WebServletConfig (com.sun.jersey.spi.container.servlet.WebServletConfig)1 Application (javax.ws.rs.core.Application)1