Search in sources :

Example 1 with Server

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());
}
Also used : ServerConfig(org.webpieces.webserver.api.ServerConfig) Server(webpiecesxxxxxpackage.Server) InetSocketAddress(java.net.InetSocketAddress) SimpleMeterRegistry(io.micrometer.core.instrument.simple.SimpleMeterRegistry)

Aggregations

SimpleMeterRegistry (io.micrometer.core.instrument.simple.SimpleMeterRegistry)1 InetSocketAddress (java.net.InetSocketAddress)1 ServerConfig (org.webpieces.webserver.api.ServerConfig)1 Server (webpiecesxxxxxpackage.Server)1