You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by gg...@apache.org on 2017/05/09 22:11:04 UTC
svn commit: r1794647 -
/httpcomponents/httpcore/branches/4.4.x/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpFileServer.java
Author: ggregory
Date: Tue May 9 22:11:04 2017
New Revision: 1794647
URL: http://svn.apache.org/viewvc?rev=1794647&view=rev
Log:
Log that we loading the keystore and what we are serving where.
Modified:
httpcomponents/httpcore/branches/4.4.x/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpFileServer.java
Modified: httpcomponents/httpcore/branches/4.4.x/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpFileServer.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/branches/4.4.x/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpFileServer.java?rev=1794647&r1=1794646&r2=1794647&view=diff
==============================================================================
--- httpcomponents/httpcore/branches/4.4.x/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpFileServer.java (original)
+++ httpcomponents/httpcore/branches/4.4.x/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpFileServer.java Tue May 9 22:11:04 2017
@@ -83,6 +83,7 @@ public class NHttpFileServer {
System.out.println("Keystore not found");
System.exit(1);
}
+ System.out.println("Loading keystore " + url);
sslContext = SSLContexts.custom()
.loadKeyMaterial(url, "nopassword".toCharArray(), "nopassword".toCharArray())
.build();
@@ -103,6 +104,7 @@ public class NHttpFileServer {
.create();
server.start();
+ System.out.println("Serving " + docRoot + " on " + server.getEndpoint().getAddress());
server.awaitTermination(Long.MAX_VALUE, TimeUnit.DAYS);
Runtime.getRuntime().addShutdownHook(new Thread() {