Hi,

You have to use the GzipFilter.

You have to provide a web.xml including something like:

  <filter>
    <filter-name>GzipFilter</filter-name>
    <filter-class>org.eclipse.jetty.servlets.GzipFilter</filter-class>
    <init-param>
      <param-name>mimeTypes</param-name>

<param-value>text/html,text/plain,text/xml,application/xhtml+xml,text/css,application/javascript,image/svg+xml</param-value>
    </init-param>
  </filter>
  <filter-mapping>
    <filter-name>GzipFilter</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>

Regards
JB

On 12/30/2013 04:22 PM, dayanand wrote:
Hi,

I m new to apache karaf, I wanted to enable the gzip compression at jetty
web server level in karaf.

My application doesn't have web.xml

Please suggest, how to acheive compression



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Compression-in-karaf-tp4030841.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.


--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to