Hi,
here's a sample (itest) on how to use services for the jetty handler:
https://github.com/ops4j/org.ops4j.pax.web/blob/master/pax-web-itest/pax-web-itest-container/pax-web-itest-container-jetty/src/test/java/org/ops4j/pax/web/itest/jetty/JettyHandlerServiceIntegrationTest.java
regards, Achim
Hello
if you want global filters or prometheus integration (I imagine it like
>> single endpoint, like /health or /metrics or something) you could try doing
>> something container (jetty/undertow/tomcat) specific. Tomcat has valves,
>> jetty and undertow have handlers - you can look at the code
From: ops4j@googlegroups.com [mailto:ops4j@googlegroups.com] On Behalf Of
Grzegorz Grzybek
Sent: Mittwoch, 17. Oktober 2018 09:23
To: ops4j@googlegroups.com
Subject: Re: [PAX-WEB] WebContainer - registering ServletFilter - confusion
if you want global filters or prometheus integration (I
On Behalf
> Of *Grzegorz Grzybek
> *Sent:* Mittwoch, 17. Oktober 2018 08:14
> *To:* ops4j@googlegroups.com
> *Subject:* Re: [PAX-WEB] WebContainer - registering ServletFilter -
> confusion
>
>
>
> Hello
>
>
>
> First, the most important line in your code is:
>
&g
Hello
First, the most important line in your code is:
WebContainer webContainer = (WebContainer) context.getService(reference);
And especially "context" you're using. pax-web in general and
"registerFilter()"
method in particular is an attempt to implement concepts from javax.servlet