protected void copyResponseEntity(HttpResponse proxyResponse,HttpServletResponse servletResponse) throws IOException {
  HttpEntity entity=proxyResponse.getEntity();
  if (entity != null) {
    OutputStream servletOutputStream=servletResponse.getOutputStream();
    entity.writeTo(servletOutputStream);
  }
}

protected void copyResponseEntity ( HttpResponse proxyResponse , HttpServletResponse servletResponse ) throws IOException { HttpEntity entity = proxyResponse . getEntity ( ) ; if ( entity != null ) { OutputStream servletOutputStream = servletResponse . getOutputStream ( ) ; entity . writeTo ( servletOutputStream ) ; } }
copy response body data ( the entity ) from the proxy to the servlet client .
