hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject [26/42] httpcomponents-core git commit: Log that we loading the keystore and what we are serving where.
Date Thu, 11 May 2017 18:18:01 GMT
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/3c4ce3b2
Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/tree/3c4ce3b2
Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/diff/3c4ce3b2

Branch: refs/heads/4.4.x
Commit: 3c4ce3b21f504fdf3c9005f69bf7c34a172eafbe
Parents: 143fa00
Author: Gary D. Gregory <ggregory@apache.org>
Authored: Tue May 9 22:11:04 2017 +0000
Committer: Oleg Kalnichevski <olegk@apache.org>
Committed: Thu May 11 20:16:44 2017 +0200

----------------------------------------------------------------------
 .../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/3c4ce3b2/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() {


Mime
View raw message