hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject [12/13] httpcomponents-core git commit: Log that we are serving with SSL.
Date Wed, 10 May 2017 07:33:59 GMT
Log that we are serving with SSL.

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/branches/4.4.x@1794654
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/136bf3ae
Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/tree/136bf3ae
Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/diff/136bf3ae

Branch: refs/heads/4.4.x
Commit: 136bf3ae6b6df9dcd0fb83d32c3167f884a3a900
Parents: 5bb120e
Author: Gary D. Gregory <ggregory@apache.org>
Authored: Tue May 9 22:35:42 2017 +0000
Committer: Gary D. Gregory <ggregory@apache.org>
Committed: Tue May 9 22:35:42 2017 +0000

----------------------------------------------------------------------
 .../examples/org/apache/http/examples/nio/NHttpFileServer.java    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/136bf3ae/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 6e1c8be..cbbe8a3 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
@@ -104,7 +104,8 @@ public class NHttpFileServer {
                 .create();
 
         server.start();
-        System.out.println("Serving " + docRoot + " on " + server.getEndpoint().getAddress());
+        System.out.println("Serving " + docRoot + " on " + server.getEndpoint().getAddress()
+                + (sslContext == null ? "" : " with " + sslContext.getProvider() + " " +
sslContext.getProtocol()));
         server.awaitTermination(Long.MAX_VALUE, TimeUnit.DAYS);
 
         Runtime.getRuntime().addShutdownHook(new Thread() {


Mime
View raw message