Re: New candidate JEP: 408: Simple Web Server

2021-05-08 Thread Christian Stein
Motivated by the summary of JEP 408, I finally wrote a small blog[1] about an in-memory http handler that I use for testing browsing-related code via URL.open..., HttpClient, or other ways to read a resource. The basic idea is to map a prepared response (http code, bytes, and content-type) to a re

Re: Re: New candidate JEP: 408: Simple Web Server

2021-04-08 Thread Zheka Kozlov
Can we put at least new classes to some java.* package (SimpleFileServer, HttpHandlers, Request)? For example, java.net.httpserver. вт, 30 мар. 2021 г. в 20:14, Julia Boes : > Hi Krzysztof, > > Is there a plan to change the package name? > I always thought that com.sun.* package was for old inter

Re: [External] : Re: Re: New candidate JEP: 408: Simple Web Server

2021-04-06 Thread Alan Bateman
On 06/04/2021 11:25, Julia Boes wrote: : The new classes extend/implement/build upon the existing abstractions in jdk.httpserver, they have a clear API relationship and cannot be easily separated out. Indeed, separating them out would make things much more confusing, given they are a logical exte

Re: [External] : Re: Re: New candidate JEP: 408: Simple Web Server

2021-04-06 Thread Julia Boes
Hi Zheka, On 05/04/2021 16:09, Zheka Kozlov wrote: > Can we put at least new classes to some java.* package (SimpleFileServer, > HttpHandlers, Request)? For example, java.net.httpserver. The new classes extend/implement/build upon the existing abstractions in jdk.httpserver, they have a clear AP

Re: New candidate JEP: 408: Simple Web Server

2021-03-30 Thread Alex Buckley
Further to Julia's comments: All of the com.sun namespace is JDK-specific -- it's not part of the Java SE Platform API. Around 90% of the com.sun namespace is internal to the JDK -- not intended for use outside the JDK. An example is the com.sun.security.ntlm package in the java.base module.

Re: New candidate JEP: 408: Simple Web Server

2021-03-30 Thread Remi Forax
- Mail original - > De: "mark reinhold" > À: "Julia Boes" > Cc: net-dev@openjdk.java.net, "jdk-dev" > Envoyé: Lundi 29 Mars 2021 21:16:06 > Objet: New candidate JEP: 408: Simple Web Server > https://openjdk.java.net/jeps/408 > > S

Re: Re: New candidate JEP: 408: Simple Web Server

2021-03-30 Thread Julia Boes
Hi Krzysztof, Is there a plan to change the package name? I always thought that com.sun.* package was for old internal code and I assume I'm not the only one. the simple server builds on the existing API in the com.sun.net.httpserver package, which was added in JDK 1.6. At that time, the conven

Re: New candidate JEP: 408: Simple Web Server

2021-03-29 Thread Krzysztof K.
Hi, Is there a plan to change the package name? I always thought that com.sun.* package was for old internal code and I assume I'm not the only one. Regards, Krzysztof Krason On Mon, Mar 29, 2021 at 9:16 PM wrote: > https://openjdk.java.net/jeps/408 > > Summary: Provide a command-line tool to

New candidate JEP: 408: Simple Web Server

2021-03-29 Thread mark . reinhold
https://openjdk.java.net/jeps/408 Summary: Provide a command-line tool to start a minimal web server that serves static files in the current directory. This low-threshold utility will be useful for prototyping, ad-hoc coding, and testing purposes, particularly in educational contexts. - M