Example #1
0
 @Override
 public void start() {
   if (httpServer == null) {
     try {
       httpServer = HttpServer.create(new InetSocketAddress(configuredPort), 10);
       runtimePort = httpServer.getAddress().getPort();
     } catch (IOException e) {
       throw new RuntimeException(e);
     }
   }
   context.bind(httpServer);
   httpServer.start();
 }