All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.airlift.http.server.Main Maven / Gradle / Ivy

There is a newer version: 0.0.6
Show newest version
package io.airlift.http.server;

import java.io.File;

public class Main {

  // https://wiki.jenkins-ci.org/display/JENKINS/Jetty
  // Parse a simple configuration
  // port
  // webapps
  // servlets
  
  public void run() {
    File jenkins = new File("/Users/jvanzyl/signature");
    WebServer server = new WebServerBuilder()
      .port(8000)
      .at("/").resourceWithListing(jenkins.getAbsolutePath())
      .build();
    server.start();        
  }
  
  public static void main(String[] args) {
    Main main = new Main();
    main.run();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy