FileDocCategorySizeDatePackage
HttpClientParams.javaAPI DocAndroid 1.5 API3735Wed May 06 22:41:10 BST 2009org.apache.http.client.params

HttpClientParams

public class HttpClientParams extends Object
An adaptor for accessing HTTP client parameters in {@link HttpParams}.
author
Oleg Kalnichevski
version
$Revision: 659595 $
since
4.0

Fields Summary
Constructors Summary
private HttpClientParams()

        super();
    
Methods Summary
public static java.lang.StringgetCookiePolicy(org.apache.http.params.HttpParams params)

 
        if (params == null) {
            throw new IllegalArgumentException("HTTP parameters may not be null");
        }
        String cookiePolicy = (String)
            params.getParameter(ClientPNames.COOKIE_POLICY);
        if (cookiePolicy == null) {
            return CookiePolicy.BEST_MATCH;
        }
        return cookiePolicy;
    
public static booleanisAuthenticating(org.apache.http.params.HttpParams params)

        if (params == null) {
            throw new IllegalArgumentException("HTTP parameters may not be null");
        }
        return params.getBooleanParameter
            (ClientPNames.HANDLE_AUTHENTICATION, true); 
    
public static booleanisRedirecting(org.apache.http.params.HttpParams params)

        if (params == null) {
            throw new IllegalArgumentException("HTTP parameters may not be null");
        }
        return params.getBooleanParameter
            (ClientPNames.HANDLE_REDIRECTS, true); 
    
public static voidsetAuthenticating(org.apache.http.params.HttpParams params, boolean value)

        if (params == null) {
            throw new IllegalArgumentException("HTTP parameters may not be null");
        }
        params.setBooleanParameter
            (ClientPNames.HANDLE_AUTHENTICATION, value); 
    
public static voidsetCookiePolicy(org.apache.http.params.HttpParams params, java.lang.String cookiePolicy)

        if (params == null) {
            throw new IllegalArgumentException("HTTP parameters may not be null");
        }
        params.setParameter(ClientPNames.COOKIE_POLICY, cookiePolicy);
    
public static voidsetRedirecting(org.apache.http.params.HttpParams params, boolean value)

        if (params == null) {
            throw new IllegalArgumentException("HTTP parameters may not be null");
        }
        params.setBooleanParameter
            (ClientPNames.HANDLE_REDIRECTS, value);