to top
Android APIs
public abstract class

AbstractHttpParams

extends Object
implements HttpParams
java.lang.Object
   ↳ org.apache.http.params.AbstractHttpParams
Known Direct Subclasses

Class Overview

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

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
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.apache.http.params.HttpParams

Protected Constructors

protected AbstractHttpParams ()

Since: API Level 1

Instantiates parameters.

Public Methods

public boolean getBooleanParameter (String name, boolean defaultValue)

Since: API Level 1

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

Parameters
name the parent name.
defaultValue the default value.
Returns
  • a Boolean that represents the value of the parameter.

public double getDoubleParameter (String name, double defaultValue)

Since: API Level 1

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

Parameters
name the parent name.
defaultValue the default value.
Returns
  • a Double that represents the value of the parameter.

public int getIntParameter (String name, int defaultValue)

Since: API Level 1

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

Parameters
name the parent name.
defaultValue the default value.
Returns
  • a Integer that represents the value of the parameter.

public long getLongParameter (String name, long defaultValue)

Since: API Level 1

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

Parameters
name the parent name.
defaultValue the default value.
Returns
  • a Long that represents the value of the parameter.

public boolean isParameterFalse (String name)

Since: API Level 1

Checks if a boolean parameter is not set or false.

Parameters
name parameter name
Returns
  • true if the parameter is either not set or set to value false, false if it is set to true

public boolean isParameterTrue (String name)

Since: API Level 1

Checks if a boolean parameter is set to true.

Parameters
name parameter name
Returns
  • true if the parameter is set to value true, false if it is not set or set to false

public HttpParams setBooleanParameter (String name, boolean value)

Since: API Level 1

Assigns a Boolean to the parameter with the given name

Parameters
name parameter name
value parameter value

public HttpParams setDoubleParameter (String name, double value)

Since: API Level 1

Assigns a Double to the parameter with the given name

Parameters
name parameter name
value parameter value

public HttpParams setIntParameter (String name, int value)

Since: API Level 1

Assigns an Integer to the parameter with the given name

Parameters
name parameter name
value parameter value

public HttpParams setLongParameter (String name, long value)

Since: API Level 1

Assigns a Long to the parameter with the given name

Parameters
name parameter name
value parameter value