Hello,

I am using Karaf + Pax Web + Jetty.
I would like to know what is the suggested way to enable gzip compression 
for servlets that areregistered programmatically.

Currently my servlet is a subclass of "javax.servlet.http.HttpServlet".
This class is registered by using "httpService.registerServlet(alias, new 
MyServlet(args), null, null);" in the activation method of an OSGi 
component.

Jetty has provided a "GzipFilter" but this is deprecated for Jetty >8 and 
does not contain any logic anymore: 
https://github.com/eclipse/jetty.project/blob/jetty-9.4.x/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/GzipFilter.java
 

Is there a generic way?
Is there a special option for Jetty?
Is there an API provided by Pax Web?
Do you know another servlet base class e.g. an "HttpGzipServlet" that 
provided the logic itself?

Best regards,
Markus

-- 
-- 
------------------
OPS4J - http://www.ops4j.org - [email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to