jakartaee/rest

Entity Provider for java.nio.file.Path

Opened this issue · 0 comments

I would like to propose the adoption of the java.nio.file.Path interface to the list of mandatory entity providers.

Since long time, JAX-RS mandates entity providers for the java.io.File class. Since Java SE 7, the NIO2 API provides the java.nio.file.Path interface as a lightweight and more efficient alternative to File. It should simply be straightforward to support Path besides File in modern Jakarta REST.

NB: Upcoming Jersey 3.1.8 already has support for java.nio.file.Path onboard.