APISonar


org.eclipse.jetty.servlet.ServletContextHandler.SECURITY

> org > eclipse > jetty > servlet > ServletContextHandler > SECURITY
org APIs eclipse APIs jetty APIs servlet APIs ServletContextHandler APIs SECURITY APIs

Example 1
public EmbeddedWebServer(Monitor monitor, int port) {
    server = new Server();
    final AccumuloConfiguration conf = monitor.getContext().getConfiguration();
    connector = new ServerConnector(server, getConnectionFactories(conf));
    connector.setHost(monitor.getHostname());
    connector.setPort(port);

    handler =
        new ServletContextHandler(ServletContextHandler.SESSIONS | ServletContextHandler.SECURITY);
    handler.getSessionHandler().getSessionCookieConfig().setHttpOnly(true);
    handler.setContextPath("/");
  }