jsr369-experts@servlet-spec.java.net

[jsr369-experts] Re: [servlet-spec users] Re: Re: Adding support for obtaining post parameters asynchronously

From: Greg Wilkins <gregw_at_webtide.com>
Date: Wed, 30 Mar 2016 19:43:32 +1100

On 30 March 2016 at 19:14, Mark Thomas <markt_at_apache.org> wrote:

> On 07/01/2016 05:55, Greg Wilkins wrote:
> >
> > All,
> >
> > To further this discussion, here are two more fully formed interfaces
> > for what I think might be suitable for parameters and multipart, with a
> > bit of javadoc
> >
> > Note that I'm not proposing we change the Part API - which has a
> > blocking aspect via it's input stream. However, I propose that a Part
> > is only returned to the listener when it is fully read - eitehr into
> > memory or into a file (as per the current configuration).
> >
> > thoughts?
>
> Generally, +1 to the concept.
>
> There is a lot of detail that will need to be worked out. The thoughts
> that immediately spring to mind are:
>
> 1. This should only be available from async mode (like the other
> non-blcoking features).
>

+1


> 2. Only one of ReadListener, PartListener and ParameterListener is
> allowed for a request.
>

+1

3. Further restrictions that you can't mix blocking and non-blocking
> access to Parts and Parameters in a single request.
>
>
+1


-- 
Greg Wilkins <gregw@webtide.com> CTO http://webtide.com