handlerFactory = handlerFactoryClass.newInstance();
} catch (Exception e) {
throw new LaunchException("Could not instantiate handler factory: " + handlerFactoryClass.getName(), e);
}
LaunchConfigBuilder launchConfigBuilder = LaunchConfigBuilder.baseDir(data.getBaseDir())
.port(port)
.address(address)
.publicAddress(publicAddress)
.development(development)
.threads(threads)
.maxContentLength(maxContentLength)
.timeResponses(timeResponses)
.compressResponses(compressResponses)
.compressionMinSize(compressionMinSize)
.compressionWhiteListMimeTypes(compressionMimeTypeWhiteList)
.compressionBlackListMimeTypes(compressionMimeTypeBlackList)
.indexFiles(indexFiles)
.defaultRegistry(data.getDefaultRegistry());
if (sslKeystore != null) {
try (InputStream stream = sslKeystore) {
launchConfigBuilder.ssl(SSLContexts.sslContext(stream, sslKeystorePassword));
}
}
return launchConfigBuilder
.other(otherProperties)
.build(handlerFactory);
} catch (Exception e) {
if (e instanceof LaunchException) {