extensions/proxy/src/main/java/uk/co/tfd/sm/proxy/TrustedLoginTokenProxyPostProcessor.java
public void process(Map<String, Object> config, Map<String, Object> templateParams,
      HttpServletResponse response, ProxyResponse proxyResponse) throws IOException {
    LOG.debug(
        "process(Map<String, Object> {}, SlingHttpServletResponse response, ProxyResponse proxyResponse)",
        templateParams);
    if (templateParams == null || !tltppp.hostname.equals(templateParams.get("hostname"))
        || tltppp.port != (Integer) templateParams.get("port")) {
      response.sendError(HttpServletResponse.SC_BAD_REQUEST);
      return;
    }
    // just use DefaultProxyPostProcessorImpl behavior
    dpppi.process(config, templateParams, response, proxyResponse);
    return;
  }
public void process(Map<String, Object> config, Map<String, Object> templateParams,
      HttpServletResponse response, ProxyResponse proxyResponse) throws IOException {
    LOG.debug(
        "process(Map<String, Object> {}, SlingHttpServletResponse response, ProxyResponse proxyResponse)",
        templateParams);
    if (templateParams == null || !tltppp.hostname.equals(templateParams.get("hostname"))
        || tltppp.port != (Integer) templateParams.get("port")) {
      response.sendError(HttpServletResponse.SC_BAD_REQUEST);
      return;
    }
    // just use DefaultProxyPostProcessorImpl behavior
    dpppi.process(config, templateParams, response, proxyResponse);
    return;
  }
public void process ( Map < String , Object > config , Map < String , Object > templateParams , HttpServletResponse response , ProxyResponse proxyResponse ) throws IOException { LOG . debug ( "process(Map<String, Object> {}, SlingHttpServletResponse response, ProxyResponse proxyResponse)" , templateParams ) ; if ( templateParams == null || ! tltppp . hostname . equals ( templateParams . get ( "hostname" ) ) || tltppp . port != ( Integer ) templateParams . get ( "port" ) ) { response . sendError ( HttpServletResponse . SC_BAD_REQUEST ) ; return ; } // just use DefaultProxyPostProcessorImpl behavior dpppi . process ( config , templateParams , response , proxyResponse ) ; return ; }
{@inheritDoc}

@see uk.co.tfd.sm.api.proxy.ProxyPostProcessor#process(java.util.Map,
org.apache.sling.api.SlingHttpServletResponse,
uk.co.tfd.sm.api.proxy.ProxyResponse)
{ @inheritDoc }