Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Servlet 3.0 API and async filters

Hi,

On Sun, Jul 21, 2013 at 11:35 AM, Kamil Gorlo <kgorlo@xxxxxxxxx> wrote:
> Hi,
>
> I want to create some kind of authorization filter in my Jetty 9
> application. This filter will ask external service to verify user
> credentials so I think it's good idea to make this call
> asynchronously.
>
> Is it possible to create asyncContext in Filter, call some external
> service asynchronously and then in onComplete callback call
> chain.doFilter(request, response)?

Yes.

--
Simone Bordet
----
http://cometd.org
http://webtide.com
http://intalio.com
Developer advice, training, services and support
from the Jetty & CometD experts.
Intalio, the modern way to build business applications.


Back to the top