-
Hello, I'm upgrading from Jetty 9 to 12 and have a service that relies on QoSFilter to actually do a bulkhead implementation by having multiple QoSFilter's with different path spec's (using Can I achieve the same effect using QoSHandler? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Are you configuring each You can achieve the same (a chain of Basically you do this: QoSHandler qos1 = new QoSHandler();
qos1.include("/foo/*"); // Only match these paths.
QoSHandler qos2 = new QoSHandler(qos1);
qos2.include("/bar/*"); // Only match these paths. You get the idea. If you don't need to configure Also, take a look at using |
Beta Was this translation helpful? Give feedback.
Are you configuring each
QoSFilter
differently?You can achieve the same (a chain of
QoSHandler
s) becauseQoSHandler
is-aConditionalHandler
, see https://jetty.org/docs/jetty/12/programming-guide/server/http.html#handler-use-conditional.Basically you do this:
You get the idea.
If you don't need to configure
QoSHandler
differently, you caninclude()
many paths on the sameQoSHandler
instance.Also, take a look at using
include(PathSpec)
withPathSpec.from()
as you will be able to use either Servlet-style path spe…