Search in sources :

Example 1 with NotebookServer

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/*");
}
Also used : NotebookServer(org.apache.zeppelin.socket.NotebookServer) ServletHolder(org.eclipse.jetty.servlet.ServletHolder) ServletContextHandler(org.eclipse.jetty.servlet.ServletContextHandler)

Aggregations

NotebookServer (org.apache.zeppelin.socket.NotebookServer)1 ServletContextHandler (org.eclipse.jetty.servlet.ServletContextHandler)1 ServletHolder (org.eclipse.jetty.servlet.ServletHolder)1