J4pClientBuilder { static Proxy parseProxySettings(String spec) { try { if (spec == null || spec.length() == 0) { return null; } return new Proxy(spec); } catch (URISyntaxException e) { return null; } } J4pClientBuilder(); final J4pClientBuilder url(String pUrl); final J4pClientBuilder user(String pUser); final J4pClientBuilder password(String pPassword); final J4pClientBuilder target(String pUrl); final J4pClientBuilder targetUser(String pUser); final J4pClientBuilder targetPassword(String pPassword); final J4pClientBuilder singleConnection(); final J4pClientBuilder pooledConnections(); final J4pClientBuilder connectionTimeout(int pTimeOut); final J4pClientBuilder socketTimeout(int pTimeOut); final J4pClientBuilder maxTotalConnections(int pConnections); final J4pClientBuilder defaultMaxConnectionsPerRoute(int pDefaultMaxConnectionsPerRoute); final J4pClientBuilder maxConnectionPoolTimeout(int pConnectionPoolTimeout); final J4pClientBuilder contentCharset(String pContentCharset); final J4pClientBuilder contentCharset(Charset pContentCharset); final J4pClientBuilder expectContinue(boolean pUse); final J4pClientBuilder tcpNoDelay(boolean pUse); final J4pClientBuilder socketBufferSize(int pSize); final J4pClientBuilder cookieStore(CookieStore pCookieStore); final J4pClientBuilder authenticator(J4pAuthenticator pAuthenticator); final J4pClientBuilder proxy(String pProxy); final J4pClientBuilder proxy(String pProxyHost, int pProxyPort); final J4pClientBuilder proxy(String pProxyHost, int pProxyPort, String pProxyUser, String pProxyPass); final J4pClientBuilder useProxyFromEnvironment(); final J4pClientBuilder responseExtractor(J4pResponseExtractor pResponseExtractor); final J4pClientBuilder sslConnectionSocketFactory(ConnectionSocketFactory pSslConnectionSocketFactory); J4pClient build(); HttpClient createHttpClient();  }
@Test public void testParseProxySettings_null() throws Exception { assertNull(J4pClientBuilder.parseProxySettings(null)); }