@Test public void testParseHttp() throws Exception { ProxyConfig config = ProxyConfig.parse("http: assertEquals("server.com", config.address.getHostString()); assertEquals(80, config.address.getPort()); assertEquals("server.com", config.hostHeader); assertEquals("http: assertEquals("/", config.urlPath); assertEquals(false, config.needSSL); }
public static ProxyConfig parse(String url) { return parse(url, false); }
ProxyConfig { public static ProxyConfig parse(String url) { return parse(url, false); } }
ProxyConfig { public static ProxyConfig parse(String url) { return parse(url, false); } ProxyConfig(
      InetSocketAddress address,
      String hostHeader,
      String url,
      String urlPath,
      boolean needSSL,
      boolean pathPassthru); }
ProxyConfig { public static ProxyConfig parse(String url) { return parse(url, false); } ProxyConfig(
      InetSocketAddress address,
      String hostHeader,
      String url,
      String urlPath,
      boolean needSSL,
      boolean pathPassthru); static ProxyConfig parse(String url); static ProxyConfig parse(String url, boolean pathPassthru); }
ProxyConfig { public static ProxyConfig parse(String url) { return parse(url, false); } ProxyConfig(
      InetSocketAddress address,
      String hostHeader,
      String url,
      String urlPath,
      boolean needSSL,
      boolean pathPassthru); static ProxyConfig parse(String url); static ProxyConfig parse(String url, boolean pathPassthru); final InetSocketAddress address; final String hostHeader; final String url; final String urlPath; final boolean needSSL; final boolean pathPassthru; }