This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ResponseWrapper getOutputStream() not called while retrieving a static resource  RSS feed

Allen Bandela
Ranch Hand
Posts: 128
Eclipse IDE MS IE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My goal: to get to the binary data of the response and cache it. The requests are for zip-files such as /2/ . I'm using an IBM objectgrid as a cache.
My code:

My response wrapper code:

How can I get access to the zip-file in the response, in order to cache it.
While debugging, I noticed that the getOutputStream() method of the responsewrapper is not called. I was assuming that the container would call it. All I found while debugging that the responsewrapper had a SRTServletResponse within it that had my file data (mime-type:application/x-zip).
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!