public static void main(String... args) throws Exception { if (args.length != 1 || args[0].startsWith("-")) { System.out.println("Usage: Http2Server <base directory>"); return; } Http2Server server = new Http2Server(new File(args[0]), SslClient.localhost().sslContext.getSocketFactory()); server.run(); } }