--- old/src/jdk.httpserver/share/classes/com/sun/net/httpserver/package-info.java 2015-04-28 17:43:21.899600367 +0400 +++ new/src/jdk.httpserver/share/classes/com/sun/net/httpserver/package-info.java 2015-04-28 17:43:21.659600367 +0400 @@ -58,7 +58,7 @@ server.createContext("/applications/myapp", new MyHandler()); server.setExecutor(null); // creates a default executor server.start(); - +

The example above creates a simple HttpServer which uses the calling application thread to invoke the handle() method for incoming http requests directed to port 8000, and to the path /applications/myapp/. @@ -92,7 +92,7 @@ SSLContext ssl = SSLContext.getInstance("TLS"); ssl.init(kmf.getKeyManagers(), tmf.getTrustManagers(), null); - +

In the example above, a keystore file called "testkeys", created with the keytool utility is used as a certificate store for client and server certificates. @@ -119,8 +119,8 @@ } }); - -

+ + @since 1.6 */ @jdk.Exported