Code example for HttpParams

Methods: getIntParameter

0
        } 
        if (params == null) {
            throw new IllegalArgumentException("HTTP parameters may not be null");
        } 
        this.sessionBuffer = buffer;
        this.maxHeaderCount = params.getIntParameter(
                CoreConnectionPNames.MAX_HEADER_COUNT, -1);
        this.maxLineLen = params.getIntParameter(
                CoreConnectionPNames.MAX_LINE_LENGTH, -1);
        this.lineParser = (parser != null) ? parser : BasicLineParser.DEFAULT;
    } 
 
    /** 
     * Parses HTTP headers from the data receiver stream according to the generic  
     * format as given in Section 3.1 of RFC 822, RFC-2616 Section 4 and 19.3. 
     *   
     * @param inbuffer Session input buffer 
     * @param maxHeaderCount maximum number of headers allowed. If the number 
     *  of headers received from the data stream exceeds maxCount value, an 
     *  IOException will be thrown. Setting this parameter to a negative value 
     *  or zero  will disable the check.