public static void start(int port) throws IOException {
// Create an HTTP server listening at port
URI uri = UriBuilder.fromUri("http://localhost/").port(port).build();
server = HttpServer.create(new InetSocketAddress(uri.getPort()), 0);
HttpHandler handler = RuntimeDelegate.getInstance().createEndpoint(new ApplicationConfig(), HttpHandler.class);
server.createContext(uri.getPath(), handler);
server.start();
}
MockDGAModel.java 文件源码
java
阅读 23
收藏 0
点赞 0
评论 0
项目:metron
作者:
评论列表
文章目录