public void mangleURL( StringBuilder baseURL, StringBuilder path, Map<String, String> kvp, URLType type) { // first check the system property, then fall back to configuration String proxyBase = (GeoServerExtensions.getProperty(Requests.PROXY_PARAM) != null) ? GeoServerExtensions.getProperty(Requests.PROXY_PARAM) : this.geoServer.getSettings().getProxyBaseUrl(); // Mangles the URL base in different ways based on a flag // (for two reasons: a) speed; b) to make the admin aware of // possible security liabilities) baseURL = (this.geoServer.getGlobal().isUseHeadersProxyURL() == true && proxyBase != null) ? this.mangleURLHeaders(baseURL, proxyBase) : this.mangleURLFixedURL(baseURL, proxyBase); }