Just create your own "default" servlet reference in your web.xml with the
async-supported turned on.

Note however, that the performance features of the Jetty DefaultServlet
might make modifying the response very difficult, as Jetty essentially
skips the servlet paths entirely and writes directly from filesystem to
http connection via memory mapped files.

--
Joakim Erdfelt <[email protected]>
webtide.com <http://www.webtide.com/> - eclipse.org/jetty - cometd.org
Expert advice, services and support from from the Jetty & CometD experts

On Sat, May 16, 2015 at 3:39 PM, Guillaume Drouet <[email protected]>
wrote:

> Hi,
>
> I want to create an AyncContext in a filter that intercepts statics served
> by the default servlet.
>
> I can't create the AsyncContext because ServletRequest#isAsyncSupported()
> returns false, since the targetted servlet is the default servlet which
> does not supports async.
>
> Is it possible to enable async support in the default servlet?
>
> Thanks
>
> --
> Guillaume DROUET
>
> _______________________________________________
> jetty-users mailing list
> [email protected]
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://dev.eclipse.org/mailman/listinfo/jetty-users
>
_______________________________________________
jetty-users mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to