title: Java Servlet and HTTP Response object
body: <p>Question on HttpResponse object in servlets. Can the contents of a HttpResponse be only read once?</p>
  
  <p>If so do I need to user a filter and some form of "javax.servlet.http.HttpServletResponseWrapper" in order to read the content of a HttpResponse object as I need to read its content to retrieve XML/JSON from the response? At the moment Im getting the below exception when I go to read the HttpResponse object. </p>
  
  <pre><code>     Content has been consumed
  at org.apache.http.entity.BasicHttpEntity.getContent(BasicHttpEntity.java:84)
  </code></pre>
  
  <p>Thanks,
  John</p>