RFR: 7105350: HttpExchange's attributes are the same as HttpContext's attributes [v5]

Daniel Fuchs dfuchs at openjdk.org
Mon Oct 13 12:59:49 UTC 2025


On Mon, 13 Oct 2025 10:37:47 GMT, Michael McMahon <michaelm at openjdk.org> wrote:

>>> Could we get access to net.properties without needing to use that class in sun.net?
>> 
>> net.properties is user editable configuration (in ${java.home}/conf), it's not an encapsulated resource.
>
>> > Could we get access to net.properties without needing to use that class in sun.net?
>> 
>> net.properties is user editable configuration (in ${java.home}/conf), it's not an encapsulated resource.
> 
> I guess it still means duplicating the NetProperties class in jdk.httpserver, which might not be too desirable. Or alternatively create a httpserver specific properties file. Not sure it's worth all that effort unless other properties might migrate there also. Otherwise, we can revert to a simple system property.

+1 for reverting to a simple system property.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/27652#discussion_r2426274101


More information about the net-dev mailing list