
io.airlift.http.server.Main Maven / Gradle / Ivy
The newest version!
package io.airlift.http.server;
import com.google.common.collect.ImmutableList;
public class Main {
// https://wiki.jenkins-ci.org/display/JENKINS/Jetty
// Parse a simple configuration
// port
// webapps
// servlets
public void run() {
WebServer server = new WebServerBuilder()
.port(8000)
.at("/").resource("/Users/jason/tmp/devtools", ImmutableList.of("index.html"))
.build();
server.start();
}
public static void main(String[] args) {
Main main = new Main();
main.run();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy