users@jax-rs-spec.java.net

[jax-rs-spec users] NIO API Proposal in Java

From: Sergey Beryozkin <sberyozkin_at_talend.com>
Date: Mon, 12 Oct 2015 21:39:16 +0100

Hi Santiago, All

> (2) NIO:
>
> https://github.com/spericas/api/blob/master/examples/src/main/java/jaxrs/examples/nio/FileResource.java
> https://github.com/spericas/api/blob/master/examples/src/main/java/jaxrs/examples/nio/FileResourceClient.java
>
> On the server side, the proposal follows the pattern set by
> StreamingOutput, but of course using lambdas this time around. As you
> know, Servlet already supports NIO, but with a completely different API.
>
>
This may be a very silly question, but can we have a FileResource code
also shown in Java ? Fine with the lamdas being used there - but can
users keep working with the 'traditional' Java syntax in order to work
with this NIO API ?

Thanks, Sergey