Code example for HttpParams

Methods: getParameter

0
     */ 
    public static String getCredentialCharset(final HttpParams params) {
        if (params == null) {
            throw new IllegalArgumentException("HTTP parameters may not be null");
        } 
        String charset = (String) params.getParameter
            (AuthPNames.CREDENTIAL_CHARSET);
        //@@@ TODO: inconsistent with JavaDoc in AuthPNames, 
        //@@@ TODO: check HTTP_ELEMENT_CHARSET first, or fix JavaDocs 
        if (charset == null) {
            charset = HTTP.DEFAULT_PROTOCOL_CHARSET;
        } 
        return charset;
    } 
 
 
    /** 
     * Sets the charset to be used when encoding 
     * {@link org.apache.http.auth.Credentials}. 
     *  
Contextual code suggestions in your IDE  Get Codota for Java