Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JAX-RS and return Gzip compression  RSS feed

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how do i return xml with GZIP compression (if i look at other sites i see : Content-Encoding: gzip)
the target is to return big xml (2.6MB)
 
Sheriff
Posts: 21288
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JAX-RS still allows regular servlet filters, so you can use one of those.
 
Peter Benda
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i added annotation of @GZIP
but when i check the headers i didn't see any effect
 
Saloon Keeper
Posts: 4331
108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does the client indicate that it can receive a gzipped response?
 
Peter Benda
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!