Code example for HttpParams

Methods: setIntParameter

0
            int maxTotalConnections) {
        if (params == null) {
            throw new IllegalArgumentException
                ("HTTP parameters must not be null."); 
        } 
        params.setIntParameter(MAX_TOTAL_CONNECTIONS, maxTotalConnections);
    } 
 
    /** 
     * Gets the maximum number of connections allowed. 
     * 
     * @param params HTTP parameters 
     * 
     * @return The maximum number of connections allowed. 
     *  
     * @see ConnManagerPNames#MAX_TOTAL_CONNECTIONS 
     */ 
    public static int getMaxTotalConnections( 
            final HttpParams params) {
        if (params == null) {
            throw new IllegalArgumentException