@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(); }
@Override public void stop() { runtimePort = -1; httpServer.stop(0); context.cleanup(); }
public ResteasyDeployment getDeployment() { return context.getDeployment(); }
public void setRootResourcePath(String rootResourcePath) { context.setPath(rootResourcePath); }