HttpClientService implements ServletContextAware { @Deprecated public HttpClient getHttpClient() { return getHttpClient(null); }  static boolean isAbsoluteUrl(String url); String executeGet(String url); String executeGet(String url, Map<String, String> headers); String executePost(String url, Map<String, String> parameters, Map<String, String> headers); String executePost(String url, Map<String, String> parameters, Map<String, String> headers, HttpState state); String getAbsoluteResourceAsString(String url); String getContextResourceAsString(String url); @Deprecated HttpClient getHttpClient(); HttpClient getHttpClient(String url); String getResourceAsString(String url); String getResourceAsString(String url, HttpServletRequest request, HttpServletResponse response); void setHttpClient(HttpClient httpClient); void setServletContext(ServletContext servletContext); void shutdown();  }
@Test public void testNoProxySettingsDefined() throws HttpException { initClient(); HttpClient httpClient = httpClientService.getHttpClient(null); assertNull(httpClient.getState().getProxyCredentials(AuthScope.ANY)); assertNull(httpClient.getHostConfiguration().getProxyHost()); assertTrue(httpClient == httpClientService.getHttpClient("http: assertTrue(httpClient == httpClientService.getHttpClient("https: assertTrue(httpClient == httpClientService.getHttpClient("http: assertTrue(httpClient == httpClientService.getHttpClient("https: assertTrue(httpClient == httpClientService.getHttpClient("www.jahia.com:9090")); assertTrue(httpClient == httpClientService.getHttpClient("localhost:9090")); assertTrue(httpClient == httpClientService.getHttpClient("/aaa.html")); }