use of webpiecesxxxxxpackage.Server in project webpieces by deanhiller.
the class FeatureTest method startServer.
@Override
protected void startServer() {
metrics = new SimpleMeterRegistry();
Server webserver = new Server(getOverrides(metrics), new AppOverridesModule(), new ServerConfig(JavaCache.getCacheLocation()), args);
webserver.start();
serverHttpsAddr = new InetSocketAddress("localhost", webserver.getUnderlyingHttpsChannel().getLocalAddress().getPort());
serverHttpAddr = new InetSocketAddress("localhost", webserver.getUnderlyingHttpChannel().getLocalAddress().getPort());
}
Aggregations