return UriBuilder.fromUri("http://localhost").port(getPort()).path(CONTEXT);
}
public void startServer(Class... resources) {
ResourceConfig config = new ResourceConfig(resources);
config.register(new LoggingFilter(LOGGER, true));
final URI baseUri = getBaseUri();
server = JettyHttpContainerFactory.createServer(baseUri, config);
LOGGER.log(Level.INFO, "Jetty-http server started on base uri: " + baseUri);
}