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
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
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
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
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.
- 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
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
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
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