You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2017/05/10 07:33:57 UTC
[10/13] httpcomponents-core git commit: Log that we loading the
keystore and what we are serving where.
Log that we loading the keystore and what we are serving where.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/branches/4.4.x@1794647 13f79535-47bb-0310-9956-ffa450edef68
Project: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/commit/04c33408
Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/tree/04c33408
Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/diff/04c33408
Branch: refs/heads/4.4.x
Commit: 04c33408888dc9a39631aaa2a9ed5daeb6425ac6
Parents: 7c5027d
Author: Gary D. Gregory <gg...@apache.org>
Authored: Tue May 9 22:11:04 2017 +0000
Committer: Gary D. Gregory <gg...@apache.org>
Committed: Tue May 9 22:11:04 2017 +0000
----------------------------------------------------------------------
.../src/examples/org/apache/http/examples/nio/NHttpFileServer.java | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/04c33408/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpFileServer.java
----------------------------------------------------------------------
diff --git a/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpFileServer.java b/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpFileServer.java
index 56dba42..6e1c8be 100644
--- a/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpFileServer.java
+++ b/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpFileServer.java
@@ -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() {