jsr369-experts@servlet-spec.java.net

[jsr369-experts] Re: [servlet-spec users] Request/Connection cancellation

From: Stuart Douglas <sdouglas_at_redhat.com>
Date: Mon, 19 Oct 2015 04:55:36 -0400 (EDT)

>
> > I am also not convinced that ServletRequestListener is the best place for
> > this. Likely only specific long running requests will need this
> > functionality, and I think that is may make more sense for them to
> > explicitly register a listener with the request.
> >
>
> I share this concern. Perhaps simplest to create a new Listener that has
> to be explicitly set via ServletRequest#addListener on a particular request:
>
> interface ServletRequestCancellationListener
> {
> void cancelled(ServletRequestCancellationEvent e);
> }
>
> Plus single method interfaces a sooo fashionable at the moment :)
>

+1

Stuart

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