FileDocCategorySizeDatePackage
AbstractHttpParams.javaAPI DocAndroid 1.5 API3875Wed May 06 22:41:10 BST 2009org.apache.http.params

AbstractHttpParams

public abstract class AbstractHttpParams extends Object implements HttpParams
Abstract base class for parameter collections. Type specific setters and getters are mapped to the abstract, generic getters and setters.
author
Oleg Kalnichevski
author
Roland Weber
version
$Revision: 542224 $

Fields Summary
Constructors Summary
protected AbstractHttpParams()
Instantiates parameters.

        super();
    
Methods Summary
public booleangetBooleanParameter(java.lang.String name, boolean defaultValue)

 
        Object param = getParameter(name);
        if (param == null) {
            return defaultValue;
        }
        return ((Boolean)param).booleanValue();
    
public doublegetDoubleParameter(java.lang.String name, double defaultValue)

 
        Object param = getParameter(name);
        if (param == null) {
            return defaultValue;
        }
        return ((Double)param).doubleValue();
    
public intgetIntParameter(java.lang.String name, int defaultValue)

 
        Object param = getParameter(name);
        if (param == null) {
            return defaultValue;
        }
        return ((Integer)param).intValue();
    
public longgetLongParameter(java.lang.String name, long defaultValue)

 
        Object param = getParameter(name);
        if (param == null) {
            return defaultValue;
        }
        return ((Long)param).longValue();
    
public booleanisParameterFalse(java.lang.String name)

        return !getBooleanParameter(name, false);
    
public booleanisParameterTrue(java.lang.String name)

        return getBooleanParameter(name, false);
    
public org.apache.http.params.HttpParamssetBooleanParameter(java.lang.String name, boolean value)

        setParameter(name, value ? Boolean.TRUE : Boolean.FALSE);
        return this;
    
public org.apache.http.params.HttpParamssetDoubleParameter(java.lang.String name, double value)

        setParameter(name, new Double(value));
        return this;
    
public org.apache.http.params.HttpParamssetIntParameter(java.lang.String name, int value)

        setParameter(name, new Integer(value));
        return this;
    
public org.apache.http.params.HttpParamssetLongParameter(java.lang.String name, long value)

        setParameter(name, new Long(value));
        return this;