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:35:43 UTC

svn commit: r1794654 - /httpcomponents/httpcore/branches/4.4.x/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpFileServer.java

Author: ggregory
Date: Tue May  9 22:35:42 2017
New Revision: 1794654

URL: http://svn.apache.org/viewvc?rev=1794654&view=rev
Log:
Log that we are serving with SSL.

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=1794654&r1=1794653&r2=1794654&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:35:42 2017
@@ -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() {