/** * Construct a new URLConnectionFactory based on the configuration. It will * try to load SSL certificates when it is specified. */ public static URLConnectionFactory newDefaultURLConnectionFactory( Configuration conf) { ConnectionConfigurator conn = getSSLConnectionConfiguration( DEFAULT_SOCKET_TIMEOUT, DEFAULT_SOCKET_TIMEOUT, conf); return new URLConnectionFactory(conn); }
/** * Construct a new URLConnectionFactory based on the configuration. It will * hornor connecTimeout and readTimeout when they are specified. */ public static URLConnectionFactory newDefaultURLConnectionFactory( int connectTimeout, int readTimeout, Configuration conf) { ConnectionConfigurator conn = getSSLConnectionConfiguration( connectTimeout, readTimeout, conf); return new URLConnectionFactory(conn); }