use of org.apache.zeppelin.socket.NotebookServer in project zeppelin by apache.
the class ZeppelinServer method setupNotebookServer.
private static void setupNotebookServer(WebAppContext webapp, ZeppelinConfiguration conf) {
notebookWsServer = new NotebookServer();
String maxTextMessageSize = conf.getWebsocketMaxTextMessageSize();
final ServletHolder servletHolder = new ServletHolder(notebookWsServer);
servletHolder.setInitParameter("maxTextMessageSize", maxTextMessageSize);
final ServletContextHandler cxfContext = new ServletContextHandler(ServletContextHandler.SESSIONS);
webapp.addServlet(servletHolder, "/ws/*");
}
Aggregations