extensions/proxy/src/main/java/uk/co/tfd/sm/proxy/DefaultProxyPostProcessorImpl.java
public void process(Map<String, Object> config, Map<String, Object> templateParams, 
      HttpServletResponse response, ProxyResponse proxyResponse) throws IOException {
    for (Entry<String, String[]> h : proxyResponse.getResponseHeaders().entrySet()) {
      for (String v : h.getValue()) {
        response.setHeader(h.getKey(), v);
      }
    }
    int code = proxyResponse.getResultCode();
    response.setStatus(code);
    IOUtils.copy(proxyResponse.getResponseBodyAsInputStream(), response
          .getOutputStream());
  }
public void process(Map<String, Object> config, Map<String, Object> templateParams, 
      HttpServletResponse response, ProxyResponse proxyResponse) throws IOException {
    for (Entry<String, String[]> h : proxyResponse.getResponseHeaders().entrySet()) {
      for (String v : h.getValue()) {
        response.setHeader(h.getKey(), v);
      }
    }
    int code = proxyResponse.getResultCode();
    response.setStatus(code);
    IOUtils.copy(proxyResponse.getResponseBodyAsInputStream(), response
          .getOutputStream());
  }
public void process ( Map < String , Object > config , Map < String , Object > templateParams , HttpServletResponse response , ProxyResponse proxyResponse ) throws IOException { for ( Entry < String , String [ ] > h : proxyResponse . getResponseHeaders ( ) . entrySet ( ) ) { for ( String v : h . getValue ( ) ) { response . setHeader ( h . getKey ( ) , v ) ; } } int code = proxyResponse . getResultCode ( ) ; response . setStatus ( code ) ; IOUtils . copy ( proxyResponse . getResponseBodyAsInputStream ( ) , response . getOutputStream ( ) ) ; }
{@inheritDoc}
@throws IOException
@see uk.co.tfd.sm.api.proxy.ProxyPostProcessor#process(org.apache.sling.api.SlingHttpServletResponse, uk.co.tfd.sm.api.proxy.ProxyResponse)
{