|
@@ -66,16 +66,13 @@ public class PrintersSocketServer {
|
|
|
public void goUp() throws Exception {
|
|
|
this.server = new Server(this.getPort());
|
|
|
|
|
|
- HttpConnectionFactory httpConnection = new HttpConnectionFactory(new HttpConfiguration());
|
|
|
-
|
|
|
-
|
|
|
SslContextFactory sslContext = new SslContextFactory();
|
|
|
-
|
|
|
sslContext.setKeyStorePath(this.getClass().getResource("/resources/printers-tray.jks").toExternalForm());
|
|
|
sslContext.setKeyStorePassword("robert2206b");
|
|
|
sslContext.setKeyManagerPassword("robert2206a");
|
|
|
|
|
|
SslConnectionFactory sslConnection = new SslConnectionFactory(sslContext, HttpVersion.HTTP_1_1.asString());
|
|
|
+ HttpConnectionFactory httpConnection = new HttpConnectionFactory(new HttpConfiguration());
|
|
|
|
|
|
ServerConnector connector = new ServerConnector(this.server, sslConnection, httpConnection);
|
|
|
connector.setHost(this.getHost());
|