• Post Reply Bookmark Topic Watch Topic
  • New Topic

JAX-RS and return Gzip compression  RSS feed

 
Ranch Hand
Posts: 48
  • 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: 21378
92
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
Ranch Hand
Posts: 48
  • 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: 4562
115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does the client indicate that it can receive a gzipped response?
 
Peter Benda
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes
 
If you open the box, you will find Heisenberg strangling Shrodenger's cat. And waving this tiny ad:
Why should you try IntelliJ IDEA ?
https://coderanch.com/wiki/696337/IntelliJ-IDEA
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!