Search in sources :

Example 1 with ServletPropertiesProvider

use of io.crnk.servlet.internal.ServletPropertiesProvider in project crnk-framework by crnk-project.

the class CrnkServlet method init.

@Override
public void init() throws ServletException {
    boot.setPropertiesProvider(new ServletPropertiesProvider(getServletConfig()));
    acceptPlainJson = !Boolean.parseBoolean(boot.getPropertiesProvider().getProperty(CrnkProperties.REJECT_PLAIN_JSON));
    HttpRequestContextProvider provider = boot.getModuleRegistry().getHttpRequestContextProvider();
    boot.addModule(new ServletModule(provider));
    initCrnk(boot);
    boot.boot();
}
Also used : ServletPropertiesProvider(io.crnk.servlet.internal.ServletPropertiesProvider) ServletModule(io.crnk.servlet.internal.ServletModule) HttpRequestContextProvider(io.crnk.core.engine.http.HttpRequestContextProvider)

Aggregations

HttpRequestContextProvider (io.crnk.core.engine.http.HttpRequestContextProvider)1 ServletModule (io.crnk.servlet.internal.ServletModule)1 ServletPropertiesProvider (io.crnk.servlet.internal.ServletPropertiesProvider)1