Code example for HttpParams

Methods: getIntParameter

0
     *     SocketConfig, ConnectionConfig)}. 
     */ 
    @Deprecated 
    public BasicConnFactory(final SSLSocketFactory sslfactory, final HttpParams params) {
        super(); 
        Args.notNull(params, "HTTP params");
        this.plainfactory = null;
        this.sslfactory = sslfactory;
        this.connectTimeout = params.getIntParameter(CoreConnectionPNames.CONNECTION_TIMEOUT, 0);
        this.sconfig = HttpParamConfig.getSocketConfig(params);
        this.connFactory = new DefaultBHttpClientConnectionFactory(
                HttpParamConfig.getConnectionConfig(params));
    } 
 
    /** 
     * @deprecated (4.3) use 
     *   {@link BasicConnFactory#BasicConnFactory(int, SocketConfig, ConnectionConfig)}. 
     */ 
    @Deprecated 
    public BasicConnFactory(final HttpParams params) {