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

Julia Boes julia.boes at oracle.com
Tue Apr 6 10:25:44 UTC 2021


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 API relationship and cannot be easily
separated out. Indeed, separating them out would make things much more
confusing, given they are a logical extension of the existing classes. Where
would we cut ties exactly? Old vs. new API points would be a misleading
distinction here and we would end up with a partial and incomplete package that
cannot stand on its own feet.

If the HTTP Server API were ever to be standardized (moved to the java.
namespace), it should be considered as a whole - with all the additional
considerations this would bring. And as said before, the java. vs. jdk.
namespace question is bigger than this JEP and will not be addressed in this work.

Regards,
Julia


More information about the jdk-dev mailing list