[jsr369-experts] Re: [servlet-spec users] Request/Connection cancellation
>
> > 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
>