public void start() {
    try {
    if (useHttps) {
      server = new Server();
      SslContextFactory sslContextFactory = new SslContextFactory();
      sslContextFactory.setKeyStore(keyStore);
      // TODO configure
      sslContextFactory.setKeyStorePassword("password");
      sslContextFactory.setKeyManagerPassword("password");
      HttpConfiguration https = new HttpConfiguration();
      ServerConnector sslConnector =
          new ServerConnector(
              server,
              new SslConnectionFactory(sslContextFactory, "http/1.1"),
              new HttpConnectionFactory(https));
      sslConnector.setPort(httpPort);
      server.setConnectors(new Connector[] {sslConnector});
    } else {
      server = new Server(httpPort);
      ServerConnector connector =
          new ServerConnector(server, new HttpConnectionFactory(new HttpConfiguration()));
      connector.setPort(httpPort);
      server.setConnectors(new Connector[] {connector});
    }

    server.setErrorHandler(new JettyErrorHandler());

    ContextHandlerCollection contexts = new ContextHandlerCollection();
    contexts.setHandlers(handlers.toArray(new Handler[0]));
    server.setHandler(contexts);

      server.start();
      monitor.info(() -> "Using Jetty transport");
    } catch (Exception e) {
      throw new RuntimeException("Error starting Jetty transport", e);
    }
  }
Provides HTTP(s) communication to the system via Jetty.
extensions/transport/portability-transport-jettyrest/src/main/java/org/datatransferproject/transport/jettyrest/http/JettyTransport.java