logger.fine("Creating new HTTP Server at "+inetAddress);
server = HttpServer.create(inetAddress, 5);
server.setExecutor(Executors.newCachedThreadPool());
String path = url.toURI().getPath();
logger.fine("Creating HTTP Context at = "+path);
HttpContext context = server.createContext(path);
server.start();
logger.fine("HTTP server started = "+inetAddress);
state = new ServerState(server);
servers.put(inetAddress, state);
return context;
}
}
server = state.getServer();
logger.fine("Creating HTTP Context at = "+url.getPath());
HttpContext context = server.createContext(url.getPath());
state.oneMoreContext();
return context;
} catch(Exception e) {
throw new ServerRtException("server.rt.err",e );
}