Android
org.apache.http.params
public abstract class

org.apache.http.params.AbstractHttpParams

java.lang.Object
org.apache.http.params.AbstractHttpParams HttpParams

Abstract base class for parameter collections. Type specific setters and getters are mapped to the abstract, generic getters and setters.

Known Direct Subclasses

Summary

Protected Constructors

            AbstractHttpParams()
Instantiates parameters.

Public Methods

          boolean  getBooleanParameter(String name, boolean defaultValue)
Returns a Boolean parameter value with the given name.
          double  getDoubleParameter(String name, double defaultValue)
Returns a Double parameter value with the given name.
          int  getIntParameter(String name, int defaultValue)
Returns an Integer parameter value with the given name.
          long  getLongParameter(String name, long defaultValue)
Returns a Long parameter value with the given name.
          boolean  isParameterFalse(String name)
Checks if a boolean parameter is not set or false.
          boolean  isParameterTrue(String name)
Checks if a boolean parameter is set to true.
          HttpParams  setBooleanParameter(String name, boolean value)
Assigns a Boolean to the parameter with the given name
          HttpParams  setDoubleParameter(String name, double value)
Assigns a Double to the parameter with the given name
          HttpParams  setIntParameter(String name, int value)
Assigns an Integer to the parameter with the given name
          HttpParams  setLongParameter(String name, long value)
Assigns a Long to the parameter with the given name
Methods inherited from class java.lang.Object
Methods inherited from interface org.apache.http.params.HttpParams

Details

Protected Constructors

protected AbstractHttpParams()

Instantiates parameters.

Public Methods

public boolean getBooleanParameter(String name, boolean defaultValue)

Returns a Boolean parameter value with the given name. If the parameter is not explicitly set, the default value is returned.

public double getDoubleParameter(String name, double defaultValue)

Returns a Double parameter value with the given name. If the parameter is not explicitly set, the default value is returned.

public int getIntParameter(String name, int defaultValue)

Returns an Integer parameter value with the given name. If the parameter is not explicitly set, the default value is returned.

public long getLongParameter(String name, long defaultValue)

Returns a Long parameter value with the given name. If the parameter is not explicitly set, the default value is returned.

public boolean isParameterFalse(String name)

Checks if a boolean parameter is not set or false.

public boolean isParameterTrue(String name)

Checks if a boolean parameter is set to true.

public HttpParams setBooleanParameter(String name, boolean value)

Assigns a Boolean to the parameter with the given name

public HttpParams setDoubleParameter(String name, double value)

Assigns a Double to the parameter with the given name

public HttpParams setIntParameter(String name, int value)

Assigns an Integer to the parameter with the given name

public HttpParams setLongParameter(String name, long value)

Assigns a Long to the parameter with the given name
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48