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