-1

I want to extract the body of a HttpServletResponse Object.I know we could use a filter to do that but i was wondering if there is any other way in which i can get the body content.I just want to extract the information from my printstream object.Any help or code samples will help?

Thanks

Bozho
  • 588,226
  • 146
  • 1,060
  • 1,140
Jony
  • 6,694
  • 20
  • 61
  • 71
  • Duplicate of http://stackoverflow.com/questions/1152786/looking-for-a-capturing-impl-of-httpservletresponsewrapper – skaffman Jul 14 '10 at 17:30
  • 1
    If there was a better way, I would have answered that in your original question: http://stackoverflow.com/questions/3242236/capture-and-log-the-response-body If that somehow doesn't work for you, you should elaborate the issue in detail instead of re-asking the same question. – BalusC Jul 14 '10 at 17:57

1 Answers1

0

You can use AOP to create an aspect around the do** method and capture the response.

Abhishek
  • 2,543
  • 4
  • 34
  • 46